AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
|
Define socket utilities to simplify networking. More...
#include <sys/socket.h>
Go to the source code of this file.
Macros | |
#define | SOCKET_ERROR -1 |
Alias for the recv() return value in case of error. More... | |
Typedefs | |
typedef int | socket_t |
Alias to differenciate between regular ints and socket fds. More... | |
Functions | |
socket_t | open_socket (const char *ip, short port) |
Connect to a host:port couple. More... | |
socket_t | open_socket_nodelay (const char *ip, short port) |
Open a socket with TCP_NODELAY. More... | |
socket_t | open_socket_reuseaddr (const char *ip, short port) |
Open a socket with SO_REUSEADDR. More... | |
Define socket utilities to simplify networking.
Definition in file socket.h.
#define SOCKET_ERROR -1 |
typedef int socket_t |
socket_t open_socket | ( | const char * | ip, |
short | port | ||
) |
socket_t open_socket_nodelay | ( | const char * | ip, |
short | port | ||
) |