Functions |
void | thread1 (struct LIBCOMMPTHREADS *libcommpthreads) |
| This is a part of block_call() and must not called from the user. More...
|
int | block_call (int fd, int id, int term, void(*block_call_do)(int fd, int id, unsigned int type, char *buf, unsigned int size, int term), void(*block_call_term)(int fd, int id)) |
| Start in thread, wait for a datablock and call the function block_call_do() if one was received or block_call_term() when the connection terminates. More...
|
int | block_ifdata (int fd) |
| This function tests if new data is available to read on a stream. More...
|
char * | block_receive_poll (int fd, unsigned int *type, char *buf, unsigned int *size, unsigned int maxsize, int term) |
| Test if is there data available on the socket and read it in a buffer if there is. More...
|
char * | block_receive (int fd, unsigned int *type, char *buf, unsigned int *size, unsigned int maxsize, int term) |
| Receive a block (composition of: type, size of datablock and datablock) from a socket. More...
|
int | block_receive_integer (int fd, unsigned int *recvi) |
| Receive an integer (two bytes; 16Bit) from the socket. More...
|
int | block_receive_nbytes (int fd, char *buf, int n) |
| Receive n bytes from socket. More...
|