|
Modules |
| group | IP Protocol Definitions for use when creating sockets |
Defines |
| #define | SWITCH_SO_LINGER 1 |
| #define | SWITCH_SO_KEEPALIVE 2 |
| #define | SWITCH_SO_DEBUG 4 |
| #define | SWITCH_SO_NONBLOCK 8 |
| #define | SWITCH_SO_REUSEADDR 16 |
| #define | SWITCH_SO_SNDBUF 64 |
| #define | SWITCH_SO_RCVBUF 128 |
| #define | SWITCH_SO_DISCONNECTED 256 |
| #define | SWITCH_INET AF_INET |
| #define | SWITCH_UNSPEC 0 |
Typedefs |
| typedef apr_socket_t | switch_socket_t |
| typedef apr_sockaddr_t | switch_sockaddr_t |
Enumerations |
| enum | switch_shutdown_how_e { SWITCH_SHUTDOWN_READ,
SWITCH_SHUTDOWN_WRITE,
SWITCH_SHUTDOWN_READWRITE
} |
Functions |
| switch_status_t | switch_socket_create (switch_socket_t **new_sock, int family, int type, int protocol, switch_memory_pool_t *pool) |
| switch_status_t | switch_socket_shutdown (switch_socket_t *sock, switch_shutdown_how_e how) |
| switch_status_t | switch_socket_close (switch_socket_t *sock) |
| switch_status_t | switch_socket_bind (switch_socket_t *sock, switch_sockaddr_t *sa) |
| switch_status_t | switch_socket_listen (switch_socket_t *sock, int32_t backlog) |
| switch_status_t | switch_socket_accept (switch_socket_t **new_sock, switch_socket_t *sock, switch_memory_pool_t *pool) |
| switch_status_t | switch_socket_connect (switch_socket_t *sock, switch_sockaddr_t *sa) |
| uint16_t | switch_sockaddr_get_port (switch_sockaddr_t *sa) |
| const char * | switch_get_addr (char *buf, switch_size_t len, switch_sockaddr_t *in) |
| int32_t | switch_sockaddr_get_family (switch_sockaddr_t *sa) |
| switch_status_t | switch_sockaddr_ip_get (char **addr, switch_sockaddr_t *sa) |
| switch_status_t | switch_sockaddr_info_get (switch_sockaddr_t **sa, const char *hostname, int32_t family, switch_port_t port, int32_t flags, switch_memory_pool_t *pool) |
| switch_status_t | switch_socket_send (switch_socket_t *sock, const char *buf, switch_size_t *len) |
| switch_status_t | switch_socket_sendto (switch_socket_t *sock, switch_sockaddr_t *where, int32_t flags, const char *buf, switch_size_t *len) |
| switch_status_t | switch_socket_recvfrom (switch_sockaddr_t *from, switch_socket_t *sock, int32_t flags, char *buf, size_t *len) |
| switch_status_t | switch_socket_recv (switch_socket_t *sock, char *buf, switch_size_t *len) |
| switch_status_t | switch_socket_opt_set (switch_socket_t *sock, int32_t opt, int32_t on) |
| switch_status_t | switch_socket_timeout_set (switch_socket_t *sock, switch_interval_time_t t) |
| switch_status_t | switch_mcast_join (switch_socket_t *sock, switch_sockaddr_t *join, switch_sockaddr_t *iface, switch_sockaddr_t *source) |