AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
|
Utilities for opening sockets. More...
#include <errno.h>
#include <netinet/in.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include "socket.h"
#include "logger.h"
Go to the source code of this file.
Macros | |
#define | LOG_TAG "socket" |
Typedefs | |
typedef enum open_type | open_type_t |
Enumerations | |
enum | open_type { NODELAY, REUSEADDR, NONE } |
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... | |
Utilities for opening sockets.
Definition in file socket.c.
typedef enum open_type open_type_t |
socket_t open_socket | ( | const char * | ip, |
short | port | ||
) |
socket_t open_socket_nodelay | ( | const char * | ip, |
short | port | ||
) |