/home/dko/Projects/mobilec/src/include/connection.h File Reference

#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_tconnection_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 Documentation

Definition at line 66 of file connection.h.

typedef struct connection_s connection_t

Function Documentation

void connection_Close ( connection_p  connection  ) 
connection_p connection_Copy ( connection_p  connection  ) 
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 
)
Generated on Tue Dec 28 15:15:27 2010 for Mobile-C by  doxygen 1.6.3