/home/dko/Projects/mobilec/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 "config.h"
#include <stdlib.h>
#include "include/acc.h"
#include "macros.h"
#include <sys/types.h>
#include "ap_queue_template.h"
#include "../mc_list/list.h"
#include "connection.h"
#include "fipa_acl.h"
#include "agent_mailbox.h"
#include "message.h"
#include "interpreter_variable_data.h"
#include <semaphore.h>
#include <errno.h>
#include "acc.h"
#include "ams.h"
#include "barrier.h"
#include "cmd_prompt.h"
#include "data_structures.h"
#include "df.h"
#include "libmc.h"
#include "../mc_sync/sync_list.h"
#include "../security/asm.h"
#include "mtp_http.h"
#include <mxml.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "xyssl-0.9/include/xyssl/havege.h"
#include "xyssl-0.9/include/xyssl/bignum.h"
#include "xyssl-0.9/include/xyssl/rsa.h"
#include "xyssl-0.9/include/xyssl/sha2.h"
#include "xyssl-0.9/include/xyssl/sha1.h"
#include "xyssl-0.9/include/xyssl/aes.h"
#include "xyssl-0.9/include/xyssl/md5.h"
#include "agent.h"

Go to the source code of this file.

Defines

#define BACKLOG   200
#define CONN_THREADS   40
#define CONNECT_THREAD_EXIT()
#define BUFLEN   512
#define UDPPORT   8866

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_connection_Thread (void *arg)
void acc_Start (mc_platform_p mc_platform)
int auth_conn_rece_key (int sockfd, char *peer_name, int *nonce, unsigned char *aes_key, char *privkey, char *known_host_filename)
void * listen_Thread (void *arg)
void * udplisten_Thread (void *arg)

Define Documentation

#define BACKLOG   200

Definition at line 74 of file acc.c.

Referenced by listen_Thread().

#define BUFLEN   512

Definition at line 914 of file acc.c.

Referenced by udplisten_Thread().

#define CONN_THREADS   40

Definition at line 297 of file acc.c.

Referenced by acc_Thread().

 
#define CONNECT_THREAD_EXIT (  ) 
Value:
free(arg); \
        MUTEX_LOCK(&acc->conn_thread_lock); \
        acc->num_conn_threads--; \
        COND_SIGNAL(&acc->conn_thread_cond); \
        MUTEX_UNLOCK(&acc->conn_thread_lock); \
        THREAD_EXIT();

Definition at line 389 of file acc.c.

Referenced by acc_connection_Thread().

#define UDPPORT   8866

Definition at line 915 of file acc.c.

Referenced by udplisten_Thread().


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

acc_p acc_Initialize ( struct mc_platform_s mc_platform  ) 

Definition at line 77 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  ) 
int auth_conn_rece_key ( int  sockfd,
char *  peer_name,
int nonce,
unsigned char *  aes_key,
char *  privkey,
char *  known_host_filename 
)

Definition at line 624 of file acc.c.

References read_known_host_file(), and reply_migration_process().

Referenced by listen_Thread().

void* listen_Thread ( void *  arg  ) 
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().

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