demo/c/socket/HelloWorld3.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <XmlBlasterAccessUnparsed.h>

Include dependency graph for HelloWorld3.c:

Go to the source code of this file.

Functions

static int myUpdate (MsgUnitArr *msgUnitArr, void *userData, XmlBlasterException *exception)
 Here we receive the callback messages from xmlBlaster.
int main (int argc, char **argv)
 Invoke: HelloWorld3 -logLevel TRACE.


Function Documentation

int main ( int  argc,
char **  argv 
)

Invoke: HelloWorld3 -logLevel TRACE.

Definition at line 88 of file HelloWorld3.c.

References XmlBlasterAccessUnparsed::callbackP, XmlBlasterAccessUnparsed::connect, MsgUnit::content, MsgUnit::contentLen, XmlBlasterAccessUnparsed::disconnect, XmlBlasterAccessUnparsed::erase, ExceptionStruct::errorCode, freeArgv(), freeMsgUnitArr(), freeMsgUnitArrInternal(), freeMsgUnitData(), freeQosArr(), freeXmlBlasterAccessUnparsed(), XmlBlasterAccessUnparsed::get, getXmlBlasterAccessUnparsed(), getXmlBlasterVersion(), CallbackServerUnparsedStruct::hostCB, XmlBlasterAccessUnparsed::initialize, MsgUnit::key, QosStructArr::len, MsgUnitStructArr::len, ExceptionStruct::message, messageUnitToXmlLimited(), MsgUnitStructArr::msgUnitArr, myUpdate(), XmlBlasterAccessUnparsed::ping, CallbackServerUnparsedStruct::portCB, XmlBlasterAccessUnparsed::publish, XmlBlasterAccessUnparsed::publishArr, XmlBlasterAccessUnparsed::publishOneway, MsgUnit::qos, QosStructArr::qosArr, sleepMillis(), strcpyAlloc(), XmlBlasterAccessUnparsed::subscribe, XmlBlasterAccessUnparsed::unSubscribe, XMLBLASTER_MAX_USAGE_LEN, xmlBlasterAccessUnparsedUsage(), and xmlBlasterFree().

Here is the call graph for this function:

static int myUpdate ( MsgUnitArr msgUnitArr,
void *  userData,
XmlBlasterException exception 
) [static]

Here we receive the callback messages from xmlBlaster.

Parameters:
msgUnitArr The received messages, it is freed by the call after this method ends
userData Is the corresponding XmlBlasterAccessUnparsed * pointer
exception An OUT parameter to transport back an exception
See also:
UpdateFp in XmlBlasterAccessUnparsed.h

UpdateFp in CallbackServerUnparsed.h

Definition at line 29 of file HelloWorld3.c.

References XmlBlasterAccessUnparsed::callbackMultiThreaded, MsgUnit::content, MsgUnit::contentLen, XmlBlasterAccessUnparsed::disconnect, ExceptionStruct::errorCode, freeMsgUnitData(), freeXmlBlasterAccessUnparsed(), MsgUnit::key, MsgUnitStructArr::len, ExceptionStruct::message, messageUnitToXml(), MsgUnitStructArr::msgUnitArr, XmlBlasterAccessUnparsed::publish, MsgUnit::qos, MsgUnit::responseQos, strcpyAlloc(), strncpy0(), XMLBLASTEREXCEPTION_ERRORCODE_LEN, XMLBLASTEREXCEPTION_MESSAGE_LEN, and xmlBlasterFree().

Referenced by main().

Here is the call graph for this function: