/home/dko/Projects/mobilec/src/message.c File Reference

#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <errno.h>
#include "config.h"
#include <mxml.h>
#include "include/libmc.h"
#include "include/agent.h"
#include "include/mc_platform.h"
#include "include/message.h"
#include "include/mtp_http.h"
#include "include/xml_compose.h"
#include "include/xml_parser.h"
#include "include/macros.h"
#include "../include/macros.h"
#include "../include/message.h"
#include "xyssl-0.9/include/xyssl/dhm.h"
#include "xyssl-0.9/include/xyssl/rsa.h"
#include "xyssl-0.9/include/xyssl/aes.h"

Go to the source code of this file.

Defines

#define SOCKET_INPUT_SIZE   4096
#define MSG_THREADS   40
#define MSG_THREAD_EXIT()

Functions

message_p message_New (void)
message_p message_Copy (message_p src)
int message_InitializeFromAgent (mc_platform_p mc_platform, message_p message, agent_p agent)
int message_InitializeFromConnection (mc_platform_p mc_platform, message_p message, connection_p connection)
int http_to_hostport (const char *http_str, char **host, int *port, char **target)
int message_InitializeFromString (mc_platform_p mc_platform, message_p message, const char *string, const char *destination_host, int destination_port, const char *target)
int message_Destroy (message_p message)
int auth_rece_send_msg (int sockfd, char *hostname, char *message, char *privkey, char *known_host_filename)
int message_Send (mc_platform_t *mc_platform, message_p message, char *privatekey)
void * message_send_Thread (void *arg)

Define Documentation

 
#define MSG_THREAD_EXIT (  ) 
Value:
free(arg); \
        message_Destroy(message); \
        MUTEX_LOCK(&mc_platform->acc->msg_thread_lock); \
        mc_platform->acc->num_msg_threads--; \
        COND_SIGNAL(&mc_platform->acc->msg_thread_cond); \
        MUTEX_UNLOCK(&mc_platform->acc->msg_thread_lock); \
        THREAD_EXIT()

Definition at line 637 of file message.c.

Referenced by message_send_Thread().

#define MSG_THREADS   40

Definition at line 574 of file message.c.

Referenced by message_Send().

#define SOCKET_INPUT_SIZE   4096

Definition at line 70 of file message.c.


Function Documentation

int auth_rece_send_msg ( int  sockfd,
char *  hostname,
char *  message,
char *  privkey,
char *  known_host_filename 
)
int http_to_hostport ( const char *  http_str,
char **  host,
int port,
char **  target 
)

Definition at line 298 of file message.c.

References MC_ERR_PARSE.

Referenced by MC_AclSend().

message_p message_Copy ( message_p  src  ) 

Definition at line 97 of file message.c.

int message_Destroy ( message_p  message  ) 
int message_InitializeFromAgent ( mc_platform_p  mc_platform,
message_p  message,
agent_p  agent 
)
int message_InitializeFromConnection ( mc_platform_p  mc_platform,
message_p  message,
connection_p  connection 
)
int message_InitializeFromString ( mc_platform_p  mc_platform,
message_p  message,
const char *  string,
const char *  destination_host,
int  destination_port,
const char *  target 
)
message_p message_New ( void   ) 
int message_Send ( mc_platform_t mc_platform,
message_p  message,
char *  privatekey 
)
void* message_send_Thread ( void *  arg  ) 
Generated on Tue Dec 28 15:15:28 2010 for Mobile-C by  doxygen 1.6.3