#include <sys/types.h>#include <netinet/in.h>Go to the source code of this file.
Data Structures | |
| struct | connection_s |
Typedefs | |
| typedef struct connection_s | connection_t |
| typedef connection_t * | connection_p |
Functions | |
| connection_p | connection_New (void) |
| int | connection_Destroy (connection_p connection) |
| connection_p | connection_Copy (connection_p connection) |
| void | connection_Close (connection_p connection) |
| void | connection_SetHosts (connection_p connection, char *remote_host, char *local_host) |
| int | connection_CreateMessage (connection_p connection) |
| int | connection_SendtoConnection (connection_p connection, char *send_buffer) |
| int | connection_RecvFromConnection (connection_p connection, struct mc_platform_s *global) |
| typedef connection_t* connection_p |
Definition at line 59 of file connection.h.
| typedef struct connection_s connection_t |
| void connection_Close | ( | connection_p | connection | ) |
| connection_p connection_Copy | ( | connection_p | connection | ) |
Definition at line 72 of file connection.c.
References connection_s::addr, connection_s::clientfd, connection_s::connect_id, connection_New(), connection_s::remote_hostname, and connection_s::serverfd.
| int connection_CreateMessage | ( | connection_p | connection | ) |
| int connection_Destroy | ( | connection_p | connection | ) |
Definition at line 42 of file connection.c.
References connection_s::clientfd, MC_SUCCESS, and connection_s::remote_hostname.
Referenced by acc_Thread().
| connection_p connection_New | ( | void | ) |
| int connection_RecvFromConnection | ( | connection_p | connection, | |
| struct mc_platform_s * | global | |||
| ) |
| int connection_SendtoConnection | ( | connection_p | connection, | |
| char * | send_buffer | |||
| ) |
| void connection_SetHosts | ( | connection_p | connection, | |
| char * | remote_host, | |||
| char * | local_host | |||
| ) |
1.5.4