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

#include <sys/socket.h>
#include "macros.h"

Go to the source code of this file.

Functions

 STRUCT (acc, struct mc_platform_s *mc_platform;THREAD_T thread;THREAD_T message_handler_thread;THREAD_T listen_thread;THREAD_T udplisten_thread;int waiting;MUTEX_T *waiting_lock;COND_T *waiting_cond;int num_conn_threads;THREAD_T conn_thread;MUTEX_T conn_thread_lock;COND_T conn_thread_cond;struct connection_thread_arg_s *connection_thread_arg;int num_msg_threads;THREAD_T msg_thread;MUTEX_T msg_thread_lock;COND_T msg_thread_cond;) STRUCT(listen_thread_arg
 STRUCT (connection_thread_arg, struct mc_platform_s *mc_platform;struct connection_s *connection;) acc_p acc_Initialize(struct mc_platform_s *mc_platform)
int acc_Destroy (acc_p acc)
void acc_Start (struct mc_platform_s *mc_platform)
void * acc_MessageHandlerThread (void *arg)
void * acc_Thread (void *arg)
void * acc_connection_Thread (void *arg)
void * listen_Thread (void *arg)
void * udplisten_Thread (void *arg)

Variables

u_long port
struct sockaddr_in * addr
unsigned long int client_fd
unsigned long int server_fd

Function Documentation

void* acc_connection_Thread ( void *  arg  ) 
int acc_Destroy ( acc_p  acc  ) 

Definition at line 102 of file acc.c.

References COND_DESTROY, MC_SUCCESS, and MUTEX_DESTROY.

Referenced by mc_platform_Destroy().

void* acc_MessageHandlerThread ( void *  arg  ) 
void acc_Start ( struct mc_platform_s mc_platform  ) 
void* acc_Thread ( void *  arg  ) 
void* listen_Thread ( void *  arg  ) 
STRUCT ( connection_thread_arg  ,
struct mc_platform_s *mc_platform;struct connection_s *connection;   
)
STRUCT ( acc  ,
struct mc_platform_s *mc_platform;THREAD_T thread;THREAD_T message_handler_thread;THREAD_T listen_thread;THREAD_T udplisten_thread;int waiting;MUTEX_T *waiting_lock;COND_T *waiting_cond;int num_conn_threads;THREAD_T conn_thread;MUTEX_T conn_thread_lock;COND_T conn_thread_cond;struct connection_thread_arg_s *connection_thread_arg;int num_msg_threads;THREAD_T msg_thread;MUTEX_T msg_thread_lock;COND_T msg_thread_cond;   
)
void* udplisten_Thread ( void *  arg  ) 

Definition at line 918 of file acc.c.

References buf, BUFLEN, mc_platform_s::hostname, mc_platform, PACKAGE_VERSION, mc_platform_s::port, and UDPPORT.

Referenced by acc_Start().


Variable Documentation

struct sockaddr_in* addr

Definition at line 78 of file acc.h.

unsigned long int client_fd

Definition at line 79 of file acc.h.

Referenced by main(), and ssl_test().

u_long port
unsigned long int server_fd

Definition at line 80 of file acc.h.

Referenced by main(), and ssl_test().

Generated on Tue Dec 28 15:15:27 2010 for Mobile-C by  doxygen 1.6.3