CallbackServerUnparsedStruct Struct Reference

This structure holds a complete callback server instance. More...

#include <CallbackServerUnparsed.h>

Collaboration diagram for CallbackServerUnparsedStruct:

Collaboration graph
[legend]

Data Fields

Propertiesprops
int stopListenLoop
int listenSocket
int acceptSocket
int socketUdp
char * hostCB
int portCB
int reusingConnectionSocket
 is false if we tunnel callback through the client connection socket
XMLBLASTER_LOG_LEVEL logLevel
CallbackServerUnparsedLogging log
void * logUserP
 For outside users to pass a user object back to their logging implementation.
InitCallbackServer runCallbackServer
IsListening isListening
ShutdownCallbackServerRaw shutdown
 For internal use (multi thread) only.
UpdateCbFp updateCb
void * updateCbUserData
 A optional pointer from the client code which is returned to the update() function call.
UseThisSocket useThisSocket
ResponseListener responseListener [100]
AddResponseListener addResponseListener
RemoveResponseListener removeResponseListener
int isShutdown
CallbackServerUnparsedSendResponse sendResponse
CallbackServerUnparsedSendXmlBlasterException sendXmlBlasterException
CallbackServerUnparsedDoRespond sendResponseOrException
pthread_mutex_t listenMutex
XmlBlasterWriteToSocketFuncHolder writeToSocket
 The function pointer to write n bytes of plain or compressed data to the socket Is initialized in initConnection(), outside users may choose to initialize it to some other function pointer.
XmlBlasterReadFromSocketFuncHolder readFromSocket
 Holding function pointer for compressed/uncompressed socket reads.

Detailed Description

This structure holds a complete callback server instance.

The function pointers like isListening() allow you to invoke methods on this structure.

The function pointer updateCb() holds the clients callback function which is invoked when messages arrive. See the description of UpdateCbFp.

Definition at line 107 of file CallbackServerUnparsed.h.


Field Documentation

Properties* CallbackServerUnparsedStruct::props

Definition at line 108 of file CallbackServerUnparsed.h.

Referenced by freeCallbackServerUnparsed(), and getCallbackServerUnparsed().

int CallbackServerUnparsedStruct::stopListenLoop

Definition at line 109 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), listenLoop(), readMessage(), and shutdownCallbackServer().

int CallbackServerUnparsedStruct::listenSocket

Definition at line 110 of file CallbackServerUnparsed.h.

Referenced by createCallbackServer(), getCallbackServerUnparsed(), isListening(), runCallbackServer(), shutdownCallbackServer(), and useThisSocket().

int CallbackServerUnparsedStruct::acceptSocket

Definition at line 111 of file CallbackServerUnparsed.h.

Referenced by closeAcceptSocket(), createCallbackServer(), getCallbackServerUnparsed(), readMessage(), sendResponse(), sendXmlBlasterException(), and useThisSocket().

int CallbackServerUnparsedStruct::socketUdp

Definition at line 112 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), listenLoop(), readMessage(), runCallbackServer(), and useThisSocket().

char* CallbackServerUnparsedStruct::hostCB

Definition at line 113 of file CallbackServerUnparsed.h.

Referenced by createCallbackServer(), getCallbackServerUnparsed(), initialize(), main(), shutdownCallbackServer(), useThisSocket(), and xmlBlasterConnect().

int CallbackServerUnparsedStruct::portCB

Definition at line 114 of file CallbackServerUnparsed.h.

Referenced by createCallbackServer(), getCallbackServerUnparsed(), initialize(), main(), useThisSocket(), and xmlBlasterConnect().

int CallbackServerUnparsedStruct::reusingConnectionSocket

is false if we tunnel callback through the client connection socket

Definition at line 115 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), handleMessage(), shutdownCallbackServer(), and useThisSocket().

XMLBLASTER_LOG_LEVEL CallbackServerUnparsedStruct::logLevel

Definition at line 116 of file CallbackServerUnparsed.h.

Referenced by addResponseListener(), closeAcceptSocket(), createCallbackServer(), getCallbackServerUnparsed(), handleMessage(), listenLoop(), readMessage(), runCallbackServer(), sendResponse(), sendResponseOrException(), sendXmlBlasterException(), shutdownCallbackServer(), and useThisSocket().

CallbackServerUnparsedLogging CallbackServerUnparsedStruct::log

Definition at line 117 of file CallbackServerUnparsed.h.

Referenced by addResponseListener(), closeAcceptSocket(), createCallbackServer(), getCallbackServerUnparsed(), handleMessage(), initialize(), listenLoop(), runCallbackServer(), sendResponse(), sendResponseOrException(), shutdownCallbackServer(), and useThisSocket().

void* CallbackServerUnparsedStruct::logUserP

For outside users to pass a user object back to their logging implementation.

Definition at line 118 of file CallbackServerUnparsed.h.

Referenced by addResponseListener(), closeAcceptSocket(), createCallbackServer(), getCallbackServerUnparsed(), handleMessage(), initialize(), listenLoop(), runCallbackServer(), sendResponse(), sendResponseOrException(), shutdownCallbackServer(), and useThisSocket().

InitCallbackServer CallbackServerUnparsedStruct::runCallbackServer

Definition at line 125 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), and initialize().

IsListening CallbackServerUnparsedStruct::isListening

Definition at line 126 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed().

ShutdownCallbackServerRaw CallbackServerUnparsedStruct::shutdown

For internal use (multi thread) only.

Definition at line 127 of file CallbackServerUnparsed.h.

Referenced by freeXmlBlasterAccessUnparsed(), and getCallbackServerUnparsed().

UpdateCbFp CallbackServerUnparsedStruct::updateCb

Definition at line 128 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed().

void* CallbackServerUnparsedStruct::updateCbUserData

A optional pointer from the client code which is returned to the update() function call.

Definition at line 129 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), interceptUpdate(), sendResponse(), and sendXmlBlasterException().

UseThisSocket CallbackServerUnparsedStruct::useThisSocket

Definition at line 130 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), and initialize().

ResponseListener CallbackServerUnparsedStruct::responseListener[100]

Definition at line 131 of file CallbackServerUnparsed.h.

Referenced by addResponseListener(), getCallbackServerUnparsed(), getResponseListener(), handleMessage(), and removeResponseListener().

AddResponseListener CallbackServerUnparsedStruct::addResponseListener

Definition at line 132 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), and preSendEvent().

RemoveResponseListener CallbackServerUnparsedStruct::removeResponseListener

Definition at line 133 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), and postSendEvent().

int CallbackServerUnparsedStruct::isShutdown

Definition at line 134 of file CallbackServerUnparsed.h.

Referenced by createCallbackServer(), freeXmlBlasterAccessUnparsed(), getCallbackServerUnparsed(), and runCallbackServer().

CallbackServerUnparsedSendResponse CallbackServerUnparsedStruct::sendResponse

Definition at line 135 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed().

CallbackServerUnparsedSendXmlBlasterException CallbackServerUnparsedStruct::sendXmlBlasterException

Definition at line 136 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed().

CallbackServerUnparsedDoRespond CallbackServerUnparsedStruct::sendResponseOrException

Definition at line 137 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), interceptUpdate(), and runUpdate().

pthread_mutex_t CallbackServerUnparsedStruct::listenMutex

Definition at line 138 of file CallbackServerUnparsed.h.

Referenced by listenLoop(), and runCallbackServer().

XmlBlasterWriteToSocketFuncHolder CallbackServerUnparsedStruct::writeToSocket

The function pointer to write n bytes of plain or compressed data to the socket Is initialized in initConnection(), outside users may choose to initialize it to some other function pointer.

Definition at line 141 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), initialize(), sendResponse(), and sendXmlBlasterException().

XmlBlasterReadFromSocketFuncHolder CallbackServerUnparsedStruct::readFromSocket

Holding function pointer for compressed/uncompressed socket reads.

Definition at line 145 of file CallbackServerUnparsed.h.

Referenced by getCallbackServerUnparsed(), initialize(), main(), readMessage(), shutdownCallbackServer(), and xmlBlasterUnmanagedCERegisterProgressListener().


The documentation for this struct was generated from the following file: