#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 66 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 80 of file connection.c.
References connection_s::addr, connection_s::clientfd, connection_s::connect_id, connection_New(), connection_s::remote_hostname, connection_s::serverfd, and strdup.
int connection_CreateMessage | ( | connection_p | connection | ) |
int connection_Destroy | ( | connection_p | connection | ) |
Definition at line 48 of file connection.c.
References connection_s::clientfd, MC_SUCCESS, and connection_s::remote_hostname.
Referenced by acc_connection_Thread().
connection_p connection_New | ( | void | ) |
Definition at line 69 of file connection.c.
Referenced by connection_Copy(), and listen_Thread().
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 | |||
) |