sock.h File Reference
#include "util.h"
#include <netinet/in.h>
Go to the source code of this file.
Data Structures |
| struct | SOCKINFO |
Defines |
| #define | SD_RECEIVE 0x00 |
| #define | SD_SEND 0x01 |
| #define | SD_BOTH 0x02 |
Functions |
| int | sock_init (OUT SOCKINFO *info, IN int sockfd) |
| int | sock_init_with_ip (OUT SOCKINFO *info, IN int sockfd, IN struct in_addr foreign_ip_addr, IN unsigned short foreign_ip_port) |
| int | sock_read (IN SOCKINFO *info, OUT char *buffer, IN size_t bufsize, INOUT int *timeoutSecs) |
| int | sock_check_w (IN SOCKINFO *info) |
| int | sock_write (IN SOCKINFO *info, IN char *buffer, IN size_t bufsize, INOUT int *timeoutSecs) |
| int | sock_destroy (INOUT SOCKINFO *info, int) |
Define Documentation
Function Documentation
| int sock_destroy |
( |
INOUT SOCKINFO * |
info, |
|
|
int |
| |
|
) |
| | |
| int sock_init |
( |
OUT SOCKINFO * |
info, |
|
|
IN int |
sockfd | |
|
) |
| | |
| int sock_init_with_ip |
( |
OUT SOCKINFO * |
info, |
|
|
IN int |
sockfd, |
|
|
IN struct in_addr |
foreign_ip_addr, |
|
|
IN unsigned short |
foreign_ip_port | |
|
) |
| | |
| int sock_read |
( |
IN SOCKINFO * |
info, |
|
|
OUT char * |
buffer, |
|
|
IN size_t |
bufsize, |
|
|
INOUT int * |
timeoutSecs | |
|
) |
| | |
| int sock_write |
( |
IN SOCKINFO * |
info, |
|
|
IN char * |
buffer, |
|
|
IN size_t |
bufsize, |
|
|
INOUT int * |
timeoutSecs | |
|
) |
| | |