demo/c/socket/Publisher.c File Reference

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

Include dependency graph for Publisher.c:

Go to the source code of this file.

Functions

static char * readFile (char *fn)
int main (int argc, char **argv)
 Demo client to publish messages.


Function Documentation

int main ( int  argc,
char **  argv 
)

Demo client to publish messages.

Not all PublishQos functionality is implemented. Invoke: Publisher -logLevel TRACE

Definition at line 28 of file Publisher.c.

References XmlBlasterAccessUnparsed::callbackP, XmlBlasterAccessUnparsed::connect, MsgUnit::content, MsgUnit::contentLen, XmlBlasterAccessUnparsed::disconnect, XmlBlasterAccessUnparsed::erase, ExceptionStruct::errorCode, freeMsgUnitData(), freeQosArr(), freeXmlBlasterAccessUnparsed(), PropertiesStruct::getBool, PropertiesStruct::getInt, PropertiesStruct::getLong, PropertiesStruct::getString, getXmlBlasterAccessUnparsed(), getXmlBlasterVersion(), CallbackServerUnparsedStruct::hostCB, XmlBlasterAccessUnparsed::initialize, MsgUnit::key, QosStructArr::len, MsgUnitStructArr::len, ExceptionStruct::message, MsgUnitStructArr::msgUnitArr, CallbackServerUnparsedStruct::portCB, XmlBlasterAccessUnparsed::props, XmlBlasterAccessUnparsed::publish, XmlBlasterAccessUnparsed::publishOneway, MsgUnit::qos, QosStructArr::qosArr, readFile(), sleepMillis(), strcpyAlloc(), verbose, XMLBLASTER_MAX_USAGE_LEN, xmlBlasterAccessUnparsedUsage(), and xmlBlasterFree().

Here is the call graph for this function:

char * readFile ( char *  fn  )  [static]

Definition at line 321 of file Publisher.c.

Referenced by main().