/home/dko/projects/mobilec/trunk/src/acc.c File Reference

#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/un.h>
#include <unistd.h>
#include <sys/time.h>
#include <pthread.h>
#include <stdlib.h>
#include "include/acc.h"
#include "include/connection.h"
#include "include/data_structures.h"
#include "include/macros.h"
#include "include/mc_error.h"
#include "include/mc_platform.h"
#include "include/message.h"
#include "include/mtp_http.h"
#include "include/xml_parser.h"
#include "include/fipa_acl_envelope.h"

Go to the source code of this file.

Defines

#define BACKLOG   10

Functions

acc_p acc_Initialize (struct mc_platform_s *mc_platform)
int acc_Destroy (acc_p acc)
void * acc_MessageHandlerThread (void *arg)
void * acc_Thread (void *arg)
void acc_Start (mc_platform_p mc_platform)
void * listen_Thread (void *arg)


Define Documentation

#define BACKLOG   10

Definition at line 63 of file acc.c.

Referenced by listen_Thread().


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 ( mc_platform_p  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  ) 


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