#include <sent/stddefs.h>
#include <sent/tcpip.h>
Include dependency graph for rdwt.c:
Go to the source code of this file.
Defines | |
#define | BUFSZ 4096 |
Buffer size. | |
Functions | |
int | rd (int fd, char *data, int *len, int maxlen) |
Read a data segment from a network stream. | |
int | wt (int fd, char *data, int len) |
Write a data segment to a network stream. |
Definition in file rdwt.c.
int rd | ( | int | fd, | |
char * | data, | |||
int * | len, | |||
int | maxlen | |||
) |
Read a data segment from a network stream.
This function will block until the specified length has been received.
fd | [in] file descriptor | |
data | [out] buffer to store the read data | |
len | [out] received length in bytes | |
maxlen | [in] maximum length of data buffer in bytes |
Definition at line 43 of file rdwt.c.
Referenced by adin_tcpip_read().
int wt | ( | int | fd, | |
char * | data, | |||
int | len | |||
) |
Write a data segment to a network stream.
fd | [in] file descriptor | |
data | [in] buffer that holds data to write | |
len | [out] received length in bytes |
Definition at line 92 of file rdwt.c.
Referenced by adin_tcpip_send_pause(), adin_tcpip_send_resume(), and adin_tcpip_send_terminate().