Lines Matching refs:data
52 /** Amount of data ready to read, in bytes */
55 /** Amount of data it is possible to send without blocking */
61 * @param data Buffer for data that was read
62 * @param size Size of the buffer and amount of data to read
63 * @return -1 on error, 0 if nonblocking and insufficient data is available, or $size
65 int libvchan_recv(libvchan_t *ctrl, void *data, size_t size);
71 * @param data Buffer for data to send
72 * @param size Size of the buffer and amount of data to send
75 int libvchan_send(libvchan_t *ctrl, const void *data, size_t size);
78 * Stream-based receive: reads as much data as possible.
80 * @param data Buffer for data that was read
82 * @return -1 on error, otherwise the amount of data read (which may be zero if
85 int libvchan_read(libvchan_t *ctrl, void *data, size_t size);
89 * Stream-based send: send as much data as possible.
91 * @param data Buffer for data to send
93 * @return -1 on error, otherwise the amount of data sent (which may be zero if
96 int libvchan_write(libvchan_t *ctrl, const void *data, size_t size);