socket/XmlBlasterUnmanaged.c File Reference

#include <string.h>
#include <stdio.h>
#include <XmlBlasterUnmanaged.h>

Include dependency graph for XmlBlasterUnmanaged.c:

Go to the source code of this file.

Functions

static void convert (XmlBlasterException *in, XmlBlasterUnmanagedException *out)
static int interceptUpdate (MsgUnitArr *msgUnitArr, void *userData, XmlBlasterException *exception)
 We intercept the callbacks here and convert it to a more simple form to be easy transferable to C# (Csharp).
XmlBlasterAccessUnparsedgetXmlBlasterAccessUnparsedUnmanaged (int argc, char **argv)
void freeXmlBlasterAccessUnparsedUnmanaged (XmlBlasterAccessUnparsed *xmlBlasterAccess)
int xmlBlasterUnmanagedInitialize (struct XmlBlasterAccessUnparsed *xa, XmlBlasterUnmanagedUpdateFp update, XmlBlasterUnmanagedException *exception)
char * xmlBlasterUnmanagedConnect (struct XmlBlasterAccessUnparsed *xa, char *qos, XmlBlasterUnmanagedUpdateFp update, XmlBlasterUnmanagedException *exception)
int xmlBlasterUnmanagedDisconnect (struct XmlBlasterAccessUnparsed *xa, char *qos, XmlBlasterUnmanagedException *exception)
char * xmlBlasterUnmanagedPublish (struct XmlBlasterAccessUnparsed *xa, MsgUnit *msgUnit, XmlBlasterUnmanagedException *exception)
QosArrxmlBlasterUnmanagedPublishArr (struct XmlBlasterAccessUnparsed *xa, MsgUnitArr *msgUnitArr, XmlBlasterUnmanagedException *exception)
void xmlBlasterUnmanagedPublishOneway (struct XmlBlasterAccessUnparsed *xa, MsgUnit *msgUnitArr, int length, XmlBlasterUnmanagedException *exception)
char * xmlBlasterUnmanagedSubscribe (struct XmlBlasterAccessUnparsed *xa, char *key, char *qos, XmlBlasterUnmanagedException *exception)
void xmlBlasterUnmanagedUnSubscribe (struct XmlBlasterAccessUnparsed *xa, char *key, char *qos, XmlBlasterUnmanagedException *exception, uint32_t *pSize, XmlBlasterUnmanagedStringArr **ppStruct)
void xmlBlasterUnmanagedErase (struct XmlBlasterAccessUnparsed *xa, char *key, char *qos, XmlBlasterUnmanagedException *exception, uint32_t *pSize, XmlBlasterUnmanagedStringArr **ppStruct)
void xmlBlasterUnmanagedGet (struct XmlBlasterAccessUnparsed *xa, char *key, char *qos, XmlBlasterUnmanagedException *exception, uint32_t *pSize, MsgUnit **ppStruct)
char * xmlBlasterUnmanagedPing (struct XmlBlasterAccessUnparsed *xa, char *qos, XmlBlasterUnmanagedException *exception)
int xmlBlasterUnmanagedIsConnected (struct XmlBlasterAccessUnparsed *xa)
char * xmlBlasterUnmanagedUsage ()


Function Documentation

static void convert ( XmlBlasterException in,
XmlBlasterUnmanagedException out 
) [static]

Definition at line 22 of file XmlBlasterUnmanaged.c.

References ExceptionStruct::errorCode, XmlBlasterUnmanagedException::errorCode, ExceptionStruct::message, XmlBlasterUnmanagedException::message, ExceptionStruct::remote, XmlBlasterUnmanagedException::remote, and strcpyAlloc().

Referenced by xmlBlasterUnmanagedCEConnect(), xmlBlasterUnmanagedCEDisconnect(), xmlBlasterUnmanagedCEErase(), xmlBlasterUnmanagedCEGet(), xmlBlasterUnmanagedCEInitialize(), xmlBlasterUnmanagedCEPing(), xmlBlasterUnmanagedCEPublish(), xmlBlasterUnmanagedCEPublishArr(), xmlBlasterUnmanagedCEPublishOneway(), xmlBlasterUnmanagedCESubscribe(), xmlBlasterUnmanagedCEUnSubscribe(), xmlBlasterUnmanagedConnect(), xmlBlasterUnmanagedDisconnect(), xmlBlasterUnmanagedErase(), xmlBlasterUnmanagedGet(), xmlBlasterUnmanagedInitialize(), xmlBlasterUnmanagedPing(), xmlBlasterUnmanagedPublish(), xmlBlasterUnmanagedPublishArr(), xmlBlasterUnmanagedPublishOneway(), xmlBlasterUnmanagedSubscribe(), and xmlBlasterUnmanagedUnSubscribe().

Here is the call graph for this function:

void freeXmlBlasterAccessUnparsedUnmanaged ( XmlBlasterAccessUnparsed xmlBlasterAccess  ) 

Definition at line 97 of file XmlBlasterUnmanaged.c.

References XmlBlasterAccessUnparsed::argc, XmlBlasterAccessUnparsed::argv, and freeXmlBlasterAccessUnparsed().

Here is the call graph for this function:

XmlBlasterAccessUnparsed* getXmlBlasterAccessUnparsedUnmanaged ( int  argc,
char **  argv 
)

argv seems to be freed by C#, so we clone it here

Definition at line 87 of file XmlBlasterUnmanaged.c.

References getXmlBlasterAccessUnparsed(), and strcpyAlloc().

Here is the call graph for this function:

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

We intercept the callbacks here and convert it to a more simple form to be easy transferable to C# (Csharp).

Definition at line 32 of file XmlBlasterUnmanaged.c.

References MsgUnit::content, MsgUnit::contentLen, ExceptionStruct::errorCode, XmlBlasterUnmanagedException::errorCode, EXCEPTIONSTRUCT_ERRORCODE_LEN, EXCEPTIONSTRUCT_MESSAGE_LEN, MsgUnit::key, MsgUnitStructArr::len, ExceptionStruct::message, XmlBlasterUnmanagedException::message, MsgUnitStructArr::msgUnitArr, MsgUnit::qos, ExceptionStruct::remote, XmlBlasterUnmanagedException::remote, MsgUnit::responseQos, MsgUnitStructArr::secretSessionId, strcpyAlloc(), strFromBlobAlloc(), strncpy0(), XmlBlasterAccessUnparsed::userFp, and xmlBlasterFree().

Here is the call graph for this function:

char* xmlBlasterUnmanagedConnect ( struct XmlBlasterAccessUnparsed xa,
char *  qos,
XmlBlasterUnmanagedUpdateFp  update,
XmlBlasterUnmanagedException exception 
)

Definition at line 116 of file XmlBlasterUnmanaged.c.

References XmlBlasterAccessUnparsed::connect, convert(), interceptUpdate(), and XmlBlasterAccessUnparsed::userFp.

Here is the call graph for this function:

int xmlBlasterUnmanagedDisconnect ( struct XmlBlasterAccessUnparsed xa,
char *  qos,
XmlBlasterUnmanagedException exception 
)

Definition at line 126 of file XmlBlasterUnmanaged.c.

References convert(), and XmlBlasterAccessUnparsed::disconnect.

Here is the call graph for this function:

void xmlBlasterUnmanagedErase ( struct XmlBlasterAccessUnparsed xa,
char *  key,
char *  qos,
XmlBlasterUnmanagedException exception,
uint32_t *  pSize,
XmlBlasterUnmanagedStringArr **  ppStruct 
)

Definition at line 192 of file XmlBlasterUnmanaged.c.

References convert(), XmlBlasterAccessUnparsed::erase, ExceptionStruct::errorCode, freeQosArr(), initializeXmlBlasterException(), QosStructArr::len, QosStructArr::qosArr, XmlBlasterUnmanagedStringArr::str, and strcpyAlloc().

Here is the call graph for this function:

void xmlBlasterUnmanagedGet ( struct XmlBlasterAccessUnparsed xa,
char *  key,
char *  qos,
XmlBlasterUnmanagedException exception,
uint32_t *  pSize,
MsgUnit **  ppStruct 
)

Definition at line 216 of file XmlBlasterUnmanaged.c.

References MsgUnit::content, MsgUnit::contentLen, convert(), ExceptionStruct::errorCode, freeMsgUnitArr(), XmlBlasterAccessUnparsed::get, MsgUnit::key, MsgUnitStructArr::len, MsgUnitStructArr::msgUnitArr, MsgUnit::qos, MsgUnit::responseQos, strcpyAlloc(), and strFromBlobAlloc().

Here is the call graph for this function:

int xmlBlasterUnmanagedInitialize ( struct XmlBlasterAccessUnparsed xa,
XmlBlasterUnmanagedUpdateFp  update,
XmlBlasterUnmanagedException exception 
)

Definition at line 107 of file XmlBlasterUnmanaged.c.

References convert(), XmlBlasterAccessUnparsed::initialize, interceptUpdate(), and XmlBlasterAccessUnparsed::userFp.

Here is the call graph for this function:

int xmlBlasterUnmanagedIsConnected ( struct XmlBlasterAccessUnparsed xa  ) 

Definition at line 253 of file XmlBlasterUnmanaged.c.

References XmlBlasterAccessUnparsed::isConnected.

char* xmlBlasterUnmanagedPing ( struct XmlBlasterAccessUnparsed xa,
char *  qos,
XmlBlasterUnmanagedException exception 
)

Definition at line 246 of file XmlBlasterUnmanaged.c.

References convert(), and XmlBlasterAccessUnparsed::ping.

Here is the call graph for this function:

char* xmlBlasterUnmanagedPublish ( struct XmlBlasterAccessUnparsed xa,
MsgUnit msgUnit,
XmlBlasterUnmanagedException exception 
)

Definition at line 133 of file XmlBlasterUnmanaged.c.

References convert(), and XmlBlasterAccessUnparsed::publish.

Here is the call graph for this function:

QosArr* xmlBlasterUnmanagedPublishArr ( struct XmlBlasterAccessUnparsed xa,
MsgUnitArr msgUnitArr,
XmlBlasterUnmanagedException exception 
)

Definition at line 140 of file XmlBlasterUnmanaged.c.

References convert(), and XmlBlasterAccessUnparsed::publishArr.

Here is the call graph for this function:

void xmlBlasterUnmanagedPublishOneway ( struct XmlBlasterAccessUnparsed xa,
MsgUnit msgUnitArr,
int  length,
XmlBlasterUnmanagedException exception 
)

Definition at line 147 of file XmlBlasterUnmanaged.c.

References convert(), MsgUnitStructArr::isOneway, MsgUnitStructArr::len, MsgUnitStructArr::msgUnitArr, XmlBlasterAccessUnparsed::publishOneway, and MsgUnitStructArr::secretSessionId.

Here is the call graph for this function:

char* xmlBlasterUnmanagedSubscribe ( struct XmlBlasterAccessUnparsed xa,
char *  key,
char *  qos,
XmlBlasterUnmanagedException exception 
)

Definition at line 159 of file XmlBlasterUnmanaged.c.

References convert(), and XmlBlasterAccessUnparsed::subscribe.

Here is the call graph for this function:

void xmlBlasterUnmanagedUnSubscribe ( struct XmlBlasterAccessUnparsed xa,
char *  key,
char *  qos,
XmlBlasterUnmanagedException exception,
uint32_t *  pSize,
XmlBlasterUnmanagedStringArr **  ppStruct 
)

Definition at line 166 of file XmlBlasterUnmanaged.c.

References convert(), ExceptionStruct::errorCode, freeQosArr(), initializeXmlBlasterException(), QosStructArr::len, QosStructArr::qosArr, XmlBlasterUnmanagedStringArr::str, strcpyAlloc(), and XmlBlasterAccessUnparsed::unSubscribe.

Here is the call graph for this function:

char* xmlBlasterUnmanagedUsage (  ) 

Definition at line 257 of file XmlBlasterUnmanaged.c.

References XMLBLASTER_MAX_USAGE_LEN, and xmlBlasterAccessUnparsedUsage().

Here is the call graph for this function: