MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / async_pipe_wait_for_data

Function async_pipe_wait_for_data

lib/asyncpipe.c:225–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225int async_pipe_wait_for_data(hamlib_async_pipe_t *pipe, int timeout)
226{
227 unsigned char data;
228 int result;
229
230 // Use a zero-length read to wait for data in pipe
231 result = async_pipe_read(pipe, &data, 0, timeout);
232
233 if (result > 0)
234 {
235 return RIG_OK;
236 }
237
238 return result;
239}
240
241ssize_t async_pipe_write(hamlib_async_pipe_t *pipe, const unsigned char *buf,
242 size_t count, int timeout)

Callers 1

Calls 1

async_pipe_readFunction · 0.85

Tested by

no test coverage detected