#include <socket_helpers.h>
Public Attributes | |
| BOOL | is_ipv6 |
| BOOL | is_udp |
| BOOL | is_multicast |
| char * | interface |
| char * | if_ip |
| struct sockaddr_storage * | sa |
| const char * | ip |
| int | port |
| BOOL | is_server |
| int | queue_length |
| BOOL | keepalive |
| int | ttl |
| BOOL | loopback |
| int | send_timeout |
| int | recv_timeout |
A socket configuration. Used by setup_socket().
Definition at line 17 of file socket_helpers.h.
| char* socket_conf_s::if_ip |
The IP address to bind on / send from.
Definition at line 27 of file socket_helpers.h.
| char* socket_conf_s::interface |
The interface to bind on / send from.
Definition at line 25 of file socket_helpers.h.
| const char* socket_conf_s::ip |
The actual IP it got bound to (after bind()).
Definition at line 31 of file socket_helpers.h.
| BOOL socket_conf_s::is_ipv6 |
Is the socket IPv6 only.
Definition at line 19 of file socket_helpers.h.
| BOOL socket_conf_s::is_multicast |
Is the socket going to join a multicast group.
Definition at line 23 of file socket_helpers.h.
| BOOL socket_conf_s::is_server |
Is it a server (will it listen()/accept()).
Definition at line 35 of file socket_helpers.h.
| BOOL socket_conf_s::is_udp |
Is the socket UDP (SOCK_DGRAM, or TCP/SOCK_STREAM).
Definition at line 21 of file socket_helpers.h.
| BOOL socket_conf_s::keepalive |
Is it a keep-alive connection.
Definition at line 39 of file socket_helpers.h.
| BOOL socket_conf_s::loopback |
Listen on loopback (if multicast).
Definition at line 43 of file socket_helpers.h.
| int socket_conf_s::port |
The port to bind to.
Definition at line 33 of file socket_helpers.h.
| int socket_conf_s::queue_length |
The length of the server queue.
Definition at line 37 of file socket_helpers.h.
| int socket_conf_s::recv_timeout |
Timeout for the listening.
Definition at line 47 of file socket_helpers.h.
| struct sockaddr_storage* socket_conf_s::sa |
TODO: remove!
Definition at line 29 of file socket_helpers.h.
| int socket_conf_s::send_timeout |
Timeout for sending.
Definition at line 45 of file socket_helpers.h.
| int socket_conf_s::ttl |
TTL of sent packets.
Definition at line 41 of file socket_helpers.h.
1.8.8