Public Attributes | |
int | argc |
The number of argv entries. | |
const char *const * | argv |
Environment configuration, usually from the command line. | |
Properties * | props |
Further configuration parameters. | |
void * | userObject |
A client can use this pointer to point to any client specific information. | |
XmlBlasterAccessGenericFp | userFp |
A client can use this function pointer to do any client specific handling. | |
XmlBlasterAccessUnparsedConnect | connect |
Connect to the server. | |
XmlBlasterAccessUnparsedInitialize | initialize |
Creates client side connection object and the callback server and does the low level IP connection. | |
XmlBlasterAccessUnparsedDisconnect | disconnect |
Disconnect from server. | |
XmlBlasterAccessUnparsedPublish | publish |
Publish a message. | |
XmlBlasterAccessUnparsedPublishArr | publishArr |
Publish an array of messages. | |
XmlBlasterAccessUnparsedPublishOneway | publishOneway |
Publish oneway an array of messages. | |
XmlBlasterAccessUnparsedSubscribe | subscribe |
Subscribe to messages. | |
XmlBlasterAccessUnparsedUnSubscribe | unSubscribe |
XmlBlasterAccessUnparsedErase | erase |
XmlBlasterAccessUnparsedGet | get |
XmlBlasterAccessUnparsedPing | ping |
XmlBlasterAccessUnparsedIsConnected | isConnected |
Check if we are connected to xmlBlaster. | |
XMLBLASTER_LOG_LEVEL | logLevel |
XmlBlasterLogging | log |
void * | logUserP |
For outside users to pass a user object back to the logging implementation. | |
XmlBlasterConnectionUnparsed * | connectionP |
CallbackServerUnparsed * | callbackP |
int | isInitialized |
int | isShutdown |
UpdateFp | clientsUpdateFp |
Here we asynchronously receive the callback from xmlBlaster. | |
int | callbackMultiThreaded |
Shall update messages be transported to the client code in a thread per request? | |
int | lowLevelAutoAck |
long | responseTimeout |
pthread_t | callbackThreadId |
char | threadCounter |
pthread_mutex_t | writenMutex |
Protect writing n bytes to the socket. | |
pthread_mutex_t | readnMutex |
Protect reading n bytes from the socket. |
All function pointers expect a 'this' pointer of type XmlBlasterAccessUnparsed and return XmlBlasterException::errorCode="communication.noConnection" if connection to xmlBlaster is lost.
Create an instance of XmlBlasterAccessUnparsed with a call to getXmlBlasterAccessUnparsed() and you are ready to access xmlBlaster. Don't forget to free everything when you don't need xmlBlaster access anymore with a call to freeXmlBlasterAccessUnparsed()
See HelloWorld3.c for a complete usage example.
http://www.xmlblaster.org/xmlBlaster/doc/requirements/protocol.socket.html
Definition at line 116 of file XmlBlasterAccessUnparsed.h.
const char* const* XmlBlasterAccessUnparsed::argv |
Environment configuration, usually from the command line.
Definition at line 119 of file XmlBlasterAccessUnparsed.h.
Properties* XmlBlasterAccessUnparsed::props |
A client can use this pointer to point to any client specific information.
Definition at line 121 of file XmlBlasterAccessUnparsed.h.
A client can use this function pointer to do any client specific handling.
Definition at line 122 of file XmlBlasterAccessUnparsed.h.
Connect to the server.
xa | The 'this' pointer | |
qos | The QoS xml markup string to connect, typically <qos> <securityService type='htpasswd' version='1.0'> <user>fritz</user> <passwd>secret</passwd> </securityService> <queue relating='callback' maxEntries='100' maxEntriesCache='100'> <callback type='SOCKET' sessionId='s'> socket://myServer.myCompany.com:6645 </callback> </queue> </qos> | |
clientUpdateFp | The clients callback function pointer UpdateFp, if NULL our default handler is used Is ignored if set by initialize already. | |
The | exception struct, exception->errorCode is filled on exception |
Definition at line 146 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::connect().
Creates client side connection object and the callback server and does the low level IP connection.
This method is automatically called by connect() so you usually only call it explicitly if you are interested in the callback server settings.
xa | The 'this' pointer | |
clientUpdateFp | The clients callback handler function UpdateFp. If NULL our default handler is used |
Definition at line 155 of file XmlBlasterAccessUnparsed.h.
Disconnect from server.
xa | The 'this' pointer | |
qos | The QoS xml markup string to disconnect | |
The | exception struct, exception->errorCode is filled on exception |
Definition at line 164 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::disconnect().
Publish a message.
xa | The 'this' pointer to simulate C++ classes | |
msgUnit | The message of type MsgUnit you want to send. | |
xmlBlasterException | If *xmlBlasterException.errorCode!=0 this XmlBlasterException is filled with the exception details and you should ignore the returned QosArr. |
Definition at line 176 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::publish().
Publish an array of messages.
xa | The 'this' pointer to simulate C++ classes | |
msgUnitArr | The messages of type MsgUnitArr you want to send. | |
xmlBlasterException | If *xmlBlasterException.errorCode!=0 this XmlBlasterException is filled with the exception details and you should ignore the returned QosArr. |
Definition at line 188 of file XmlBlasterAccessUnparsed.h.
Publish oneway an array of messages.
Oneway messages don't return something, the server does not acknowledge (ACK) them.
xa | The 'this' pointer to simulate C++ classes | |
msgUnitArr | The messages of type MsgUnitArr you want to send. | |
xmlBlasterException | If *xmlBlasterException.errorCode!=0 this XmlBlasterException is filled with the exception details and you should ignore the returned QosArr. |
Definition at line 202 of file XmlBlasterAccessUnparsed.h.
Subscribe to messages.
xa | The 'this' pointer to simulate C++ classes | |
key | The key xml string | |
qos | The QoS xml string | |
xmlBlasterException | If *xmlBlasterException.errorCode!=0 this XmlBlasterException is filled with the exception details and you should ignore the returned QosArr. |
Definition at line 215 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::subscribe().
Definition at line 216 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::unSubscribe().
Definition at line 217 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::erase().
Definition at line 218 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::get().
Definition at line 219 of file XmlBlasterAccessUnparsed.h.
Check if we are connected to xmlBlaster.
xa | The 'this' pointer |
Definition at line 225 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::isLoggedIn().
XMLBLASTER_LOG_LEVEL XmlBlasterAccessUnparsed::logLevel |
Definition at line 226 of file XmlBlasterAccessUnparsed.h.
XmlBlasterLogging XmlBlasterAccessUnparsed::log |
Definition at line 227 of file XmlBlasterAccessUnparsed.h.
For outside users to pass a user object back to the logging implementation.
Definition at line 228 of file XmlBlasterAccessUnparsed.h.
XmlBlasterConnectionUnparsed* XmlBlasterAccessUnparsed::connectionP |
Definition at line 230 of file XmlBlasterAccessUnparsed.h.
CallbackServerUnparsed* XmlBlasterAccessUnparsed::callbackP |
Definition at line 231 of file XmlBlasterAccessUnparsed.h.
Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::connect(), org::xmlBlaster::client::protocol::socket::SocketDriver::getCbAddress(), org::xmlBlaster::client::protocol::socket::SocketDriver::registerProgressListener(), and org::xmlBlaster::client::protocol::socket::SocketDriver::shutdownCb().
Definition at line 232 of file XmlBlasterAccessUnparsed.h.
Definition at line 233 of file XmlBlasterAccessUnparsed.h.
Here we asynchronously receive the callback from xmlBlaster.
NOTE: After this call the memory of MsgUnitArr is freed immediately by CallbackServerUnparsed. So you need to take a copy of all message members if needed out of the scope of this function.
msgUnitArr | The messages of type MsgUnitArr from the server, use MsgUnit::responseQos to transport the return value. If responseQos is not NULL it will be free()'d as well by us. | |
userData | An optional pointer from the client with client specific data which is delivered back. Here userData is always the 'XmlBlasterAccessUnparsed *' pointer | |
xmlBlasterException | This points on a valid struct of type XmlBlasterException, so you only need to fill errorCode with strcpy and the returned pointer is ignored and the exception is thrown to xmlBlaster. |
Definition at line 254 of file XmlBlasterAccessUnparsed.h.
Shall update messages be transported to the client code in a thread per request?
Definition at line 256 of file XmlBlasterAccessUnparsed.h.
Definition at line 257 of file XmlBlasterAccessUnparsed.h.
Definition at line 258 of file XmlBlasterAccessUnparsed.h.
Definition at line 259 of file XmlBlasterAccessUnparsed.h.
Definition at line 260 of file XmlBlasterAccessUnparsed.h.
pthread_mutex_t XmlBlasterAccessUnparsed::writenMutex |
pthread_mutex_t XmlBlasterAccessUnparsed::readnMutex |