apptransport

apptransport

Functions

void (*client_delete) ()
AppTransportClient * (*client_new) ()
int (*client_receive) ()
int (*status) ()

Types and Values

Description

Functions

client_delete ()

void
(*client_delete) (AppTransport *transport,
                  AppTransportClient *client);

client_new ()

AppTransportClient *
(*client_new) (AppTransport *transport,
               char const *name);

client_receive ()

int
(*client_receive) (AppTransport *transport,
                   AppTransportClient *client,
                   AppMessage *message);

status ()

int
(*status) (AppTransport *transport,
           AppTransportStatus status,
           unsigned int code,
           char const *message);

Types and Values

AppTransport

typedef struct _AppTransport AppTransport;

AppTransportClient

typedef struct _AppTransportClient AppTransportClient;

enum AppTransportMode

Members

ATM_SERVER

   

ATM_CLIENT

   

AppTransportPlugin

typedef struct _AppTransportPlugin AppTransportPlugin;

struct AppTransportPluginDefinition

struct AppTransportPluginDefinition {
	char const * name;
	char const * description;
	AppTransportPlugin * (*init)(AppTransportPluginHelper * helper,
			AppTransportMode mode, char const * name);
	void (*destroy)(AppTransportPlugin * transport);

	/* ATM_CLIENT */
	int (*client_send)(AppTransportPlugin * transport,
			AppMessage * message);

	/* ATM_SERVER */
	int (*server_send)(AppTransportPlugin * transport,
			AppTransportClient * client, AppMessage * message);
};

enum AppTransportStatus

Members

ATS_INIT

   

ATS_CONNECTED

   

ATS_INFO

   

ATS_WARNING

   

ATS_ERROR

   

ATS_ERROR_FATAL