Defines | |
#define | WRITE_FORMAT_BUFFER_SIZE 1024 |
Internal library format buffer size. | |
Functions | |
int | peak_stream_read (peak_stream s, void *buffer, size_t bufsize) |
Read bytes on a stream. | |
int | peak_stream_recvfrom (peak_stream s, void *buffer, size_t bufsize, struct sockaddr *from, int *fromlen) |
Read bytes on a stream (advanced). | |
int | peak_stream_write (peak_stream s, const void *buffer, size_t bufsize) |
Write bytes to a stream. | |
int | peak_stream_write_format (peak_stream s, const char *format,...) |
Format string and write bytes to a stream. | |
int | peak_stream_write_vformat (peak_stream s, const char *format, va_list vl) |
Format string with arguments and write bytes to a stream. | |
int | peak_stream_writev (peak_stream s, const struct iovec *iov, int iovcnt) |
Gather data from iov array and write the bytes to a stream. |
|
Internal library format buffer size. The length of a message formatted with peak_stream_write_format() or peak_stream_write_vformat() cannot be highter than that. |
|
Read bytes on a stream.
|
|
Read bytes on a stream (advanced).
|
|
Write bytes to a stream. Warning: this function doesn't do write-buffered. For that feature, you need to configure the stream for it, using peak_stream_set_buffered() and then use peak_stream_write_buffered().
|
|
Format string and write bytes to a stream. Warning: this function doesn't do write-buffered. For that feature, you need to configure the stream for it, using peak_stream_set_buffered() and then use peak_stream_msgbuf_make().
|
|
Format string with arguments and write bytes to a stream. Warning: this function doesn't do write-buffered. For that feature, you need to configure the stream for it, using peak_stream_set_buffered() and then use peak_stream_msgbuf_vmake().
|
|
Gather data from iov array and write the bytes to a stream.
|