/home/dko/projects/mobilec/trunk/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;int waiting;MUTEX_T *waiting_lock;COND_T *waiting_cond;) STRUCT(listen_thread_arg
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 * listen_Thread (void *arg)

Variables

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


Function Documentation

int acc_Destroy ( acc_p  acc  ) 

Definition at line 82 of file acc.c.

References MC_SUCCESS.

Referenced by mc_platform_Destroy().

acc_p acc_Initialize ( struct mc_platform_s mc_platform  ) 

Definition at line 66 of file acc.c.

References COND_INIT, COND_T, MUTEX_INIT, and MUTEX_T.

Referenced by mc_platform_Initialize().

void* acc_MessageHandlerThread ( void *  arg  ) 

void acc_Start ( struct mc_platform_s mc_platform  ) 

void* acc_Thread ( void *  arg  ) 

Definition at line 329 of file acc.c.

References agent_mailbox_Post(), mc_platform_s::agent_queue, AGENT_UPDATE, mc_platform_s::asm_message_queue, CANCEL, COND_BROADCAST, COND_WAIT, connection_Destroy(), mc_platform_s::connection_queue, mtp_http_s::content, mtp_http_content_s::data, ENCRYPTED_DATA, ENCRYPTION_INITIALIZE, FIPA_ACL, fipa_acl_envelope_Destroy(), fipa_acl_envelope_New(), fipa_acl_message_Destroy(), fipa_acl_message_New(), fipa_acl_Parse(), fipa_agent_identifier_set_s::fipa_agent_identifiers, fipa_envelope_Parse(), fipa_message_string_Destroy(), fipa_message_string_New(), mc_platform_s::giant, mc_platform_s::giant_cond, mc_platform_s::giant_lock, mtp_http_s::http_performative, HTTP_POST, HTTP_PUT, agent_s::mailbox, mc_platform, MC_RECV_CONNECTION, mc_platform_s::MC_signal, mc_platform_s::MC_signal_cond, mc_platform_s::MC_signal_lock, fipa_message_string_s::message, message_s::message_body, message_Destroy(), message_New(), mtp_http_s::message_parts, mc_platform_s::message_queue, message_s::message_type, message_xml_parse(), MOBILE_AGENT, mtp_http_Destroy(), mtp_http_InitializeFromConnection(), mtp_http_New(), MUTEX_LOCK, MUTEX_UNLOCK, MXML_NO_CALLBACK, mxmlLoadString(), N_UNDRSTD, fipa_agent_identifier_s::name, fipa_agent_identifier_set_s::num, fipa_acl_envelope_s::num_params, fipa_acl_envelope_s::params, fipa_message_string_s::parse, QUER_IF, QUER_REF, mc_platform_s::quit, mc_platform_s::quit_lock, RELAY, REQUEST, REQUEST_ENCRYPTION_INITIALIZE, RETURN_MSG, SUBSCRIBE, mtp_http_s::target, fipa_acl_Param_s::to, WARN, and message_s::xml_root.

Referenced by acc_Start().

void* listen_Thread ( void *  arg  ) 

STRUCT ( acc  ,
struct mc_platform_s *mc_platform;THREAD_T thread;THREAD_T message_handler_thread;THREAD_T listen_thread;int waiting;MUTEX_T *waiting_lock;COND_T *waiting_cond  
)


Variable Documentation

struct sockaddr_in* addr

Definition at line 64 of file acc.h.

unsigned long int client_fd

Definition at line 65 of file acc.h.

Referenced by main(), and ssl_test().

u_long port

unsigned long int server_fd

Definition at line 66 of file acc.h.

Referenced by main(), and ssl_test().


Generated on Thu Nov 13 14:22:57 2008 for Mobile-C by  doxygen 1.5.5