Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

alp_ipc_internal.h File Reference


Detailed Description

File containing definitions of functions and data structures internal to the IPC library.

#include <pthread.h>
#include <signal.h>
#include <hiker/ipc.h>
#include <hiker/config_defines.h>
#include <hiker/traces.h>

Go to the source code of this file.

Data Structures

struct  _ConnectCBInfo
struct  _DisconnectCBInfo
struct  _ReceiveCBInfo
struct  _AlpMessageHeader
struct  _AlpChannel
struct  _AlpConnection
struct  _AlpMessage
struct  _SynchReceiveData

Defines

#define ALP_IPC_INTERNAL_H_   1
#define TRACE_IPC(str,)   ALP_TM(TL(ALP_CLASS_IPC, "%s(): " str, __PRETTY_FUNCTION__, __VA_ARGS__))
#define ALP_IPC_MSG_VERSION   1
#define DEFAULT_CHANNEL_DIRECTORY   "/tmp/"
#define DEFAULT_FORMAT_STRING_LENGTH   32
#define DEFAULT_BUFFER_SIZE   1024

Typedefs

typedef _ConnectCBInfo ConnectCBInfo
typedef _DisconnectCBInfo DisconnectCBInfo
typedef _ReceiveCBInfo ReceiveCBInfo
typedef enum _AlpConnectionStatus AlpConnectionStatus
typedef enum _AlpIPCInternalMessageID AlpIPCInternalMessageID
typedef _AlpMessageHeader AlpMessageHeader
typedef _SynchReceiveData SynchReceiveData

Enumerations

enum  _AlpConnectionStatus { ALP_IPC_CONNECTION_CREATED, ALP_IPC_CONNECTION_READY }
enum  _AlpIPCInternalMessageID { ALP_IPC_MSG_UNKNOWN = -2 }

Functions

AlpChannelprv_channel_create ()
void prv_channel_destroy (AlpChannel *channel)
AlpConnectionprv_connection_create (AlpConnectionUsageHint hint)
void prv_connection_destroy (AlpConnection *connection)
AlpMessageprv_message_create ()
void prv_message_destroy (AlpMessage *message)
GIOStatus prv_get_msg_header (AlpConnection *connection, AlpMessage **msg, GIOChannel *source)
void prv_invoke_messsage_callback (AlpConnection *connection, AlpMessage *message)
gboolean prv_server_accept_CB (GIOChannel *source, GIOCondition condition, gpointer data)
gboolean prv_server_received_input_hangup_CB (GIOChannel *source, GIOCondition condition, gpointer data)
gboolean prv_client_received_input_hangup_CB (GIOChannel *source, GIOCondition condition, gpointer data)
gboolean prv_received_output_hangup_CB (GIOChannel *source, GIOCondition condition, gpointer data)
gboolean prv_connection_table_remove_CB (gpointer key, gpointer value, gpointer userData)
gboolean prv_finish_packing (AlpMessage *message)
gboolean prv_repack_header (AlpMessage *message)
gboolean prv_realloc_message_buffer (AlpMessage *message, guint numBytesNeeded)
gboolean prv_receive_func_timeout_CB (gpointer data)
gboolean prv_receive_func_input_hangup_CB (GIOChannel *source, GIOCondition condition, gpointer data)
alp_status_t prv_receive_func (SynchReceiveData *arg)
alp_status_t prv_send_with_response (AlpConnection *connection, AlpMessage *messageToSend, guint timeout, AlpMessage **responseMessage)
alp_status_t prv_wait_for_synch_receive (AlpConnection *connection, gint messageID, guint timeout, AlpMessage **message)
alp_status_t prv_queue_received_message (AlpConnection *connection, AlpMessage *message)
gboolean prv_idle_send_queued_messages_CB (gpointer data)
alp_status_t prv_send_queued_messages (AlpConnection *connection)
alp_status_t prv_check_for_queued_message (AlpConnection *connection, gint msgID, AlpMessage **message)
alp_status_t prv_queue_sent_message (AlpConnection *connection, AlpMessage *message)
void prv_install_SIGPIPE_handler (struct sigaction *oldHandler)
void prv_restore_SIGPIPE_handler (struct sigaction *oldHandler)
void prv_install_g_io_out_callback (AlpConnection *connection)
void prv_make_dirs (GString *path)
void prv_clean_up_old_socket (const gchar *channelName, const GString *socketName)
void prv_server_socket_name (const gchar *channelName, GString *socketFileName)
gboolean prv_set_up_client_connection (AlpConnection *newConnection)
gboolean prv_wait_for_connect_CB (GIOChannel *source, GIOCondition condition, gpointer data)
gint prv_try_to_connect (AlpConnection *connection, const gchar *channelName, gboolean isRetry, gint timeout, alp_status_t *status)


Define Documentation

#define ALP_IPC_INTERNAL_H_   1
 

#define ALP_IPC_MSG_VERSION   1
 

#define DEFAULT_BUFFER_SIZE   1024
 

#define DEFAULT_CHANNEL_DIRECTORY   "/tmp/"
 

#define DEFAULT_FORMAT_STRING_LENGTH   32
 

#define TRACE_IPC str   )     ALP_TM(TL(ALP_CLASS_IPC, "%s(): " str, __PRETTY_FUNCTION__, __VA_ARGS__))
 


Typedef Documentation

typedef enum _AlpConnectionStatus AlpConnectionStatus
 

typedef enum _AlpIPCInternalMessageID AlpIPCInternalMessageID
 

typedef struct _AlpMessageHeader AlpMessageHeader
 

typedef struct _ConnectCBInfo ConnectCBInfo
 

typedef struct _DisconnectCBInfo DisconnectCBInfo
 

typedef struct _ReceiveCBInfo ReceiveCBInfo
 

typedef struct _SynchReceiveData SynchReceiveData
 


Enumeration Type Documentation

enum _AlpConnectionStatus
 

Enumerator:
ALP_IPC_CONNECTION_CREATED 
ALP_IPC_CONNECTION_READY 

enum _AlpIPCInternalMessageID
 

Enumerator:
ALP_IPC_MSG_UNKNOWN 


Function Documentation

AlpChannel* prv_channel_create  ) 
 

void prv_channel_destroy AlpChannel channel  ) 
 

alp_status_t prv_check_for_queued_message AlpConnection connection,
gint  msgID,
AlpMessage **  message
 

void prv_clean_up_old_socket const gchar *  channelName,
const GString *  socketName
 

gboolean prv_client_received_input_hangup_CB GIOChannel *  source,
GIOCondition  condition,
gpointer  data
 

AlpConnection* prv_connection_create AlpConnectionUsageHint  hint  ) 
 

void prv_connection_destroy AlpConnection connection  ) 
 

gboolean prv_connection_table_remove_CB gpointer  key,
gpointer  value,
gpointer  userData
 

gboolean prv_finish_packing AlpMessage message  ) 
 

GIOStatus prv_get_msg_header AlpConnection connection,
AlpMessage **  msg,
GIOChannel *  source
 

gboolean prv_idle_send_queued_messages_CB gpointer  data  ) 
 

void prv_install_g_io_out_callback AlpConnection connection  ) 
 

void prv_install_SIGPIPE_handler struct sigaction *  oldHandler  ) 
 

void prv_invoke_messsage_callback AlpConnection connection,
AlpMessage message
 

void prv_make_dirs GString *  path  ) 
 

AlpMessage* prv_message_create  ) 
 

void prv_message_destroy AlpMessage message  ) 
 

alp_status_t prv_queue_received_message AlpConnection connection,
AlpMessage message
 

alp_status_t prv_queue_sent_message AlpConnection connection,
AlpMessage message
 

gboolean prv_realloc_message_buffer AlpMessage message,
guint  numBytesNeeded
 

alp_status_t prv_receive_func SynchReceiveData arg  ) 
 

gboolean prv_receive_func_input_hangup_CB GIOChannel *  source,
GIOCondition  condition,
gpointer  data
 

gboolean prv_receive_func_timeout_CB gpointer  data  ) 
 

gboolean prv_received_output_hangup_CB GIOChannel *  source,
GIOCondition  condition,
gpointer  data
 

gboolean prv_repack_header AlpMessage message  ) 
 

void prv_restore_SIGPIPE_handler struct sigaction *  oldHandler  ) 
 

alp_status_t prv_send_queued_messages AlpConnection connection  ) 
 

alp_status_t prv_send_with_response AlpConnection connection,
AlpMessage messageToSend,
guint  timeout,
AlpMessage **  responseMessage
 

gboolean prv_server_accept_CB GIOChannel *  source,
GIOCondition  condition,
gpointer  data
 

gboolean prv_server_received_input_hangup_CB GIOChannel *  source,
GIOCondition  condition,
gpointer  data
 

void prv_server_socket_name const gchar *  channelName,
GString *  socketFileName
 

gboolean prv_set_up_client_connection AlpConnection newConnection  ) 
 

gint prv_try_to_connect AlpConnection connection,
const gchar *  channelName,
gboolean  isRetry,
gint  timeout,
alp_status_t status
 

gboolean prv_wait_for_connect_CB GIOChannel *  source,
GIOCondition  condition,
gpointer  data
 

alp_status_t prv_wait_for_synch_receive AlpConnection connection,
gint  messageID,
guint  timeout,
AlpMessage **  message
 


Generated on Sat Dec 16 20:29:49 2006 for hiker-0.9 by  doxygen 1.4.4