XmlBlasterReadFromSocketFuncHolder Struct Reference

Holds a callback function pointer and its user pointer (the 'this' pointer). More...

#include <helper.h>


Data Fields

XmlBlasterReadFromSocketFunc readFromSocketFuncP
void * userP
XmlBlasterNumReadFunc numReadFuncP
 You can register a function pointer listener to be informed about the socket read progress.
void * numReadUserP
 This will be looped through to numReadFuncP.


Detailed Description

Holds a callback function pointer and its user pointer (the 'this' pointer).

Definition at line 42 of file helper.h.


Field Documentation

XmlBlasterReadFromSocketFunc XmlBlasterReadFromSocketFuncHolder::readFromSocketFuncP

Definition at line 43 of file helper.h.

Referenced by getCallbackServerUnparsed(), getXmlBlasterConnectionUnparsed(), initConnection(), initialize(), and parseSocketData().

void* XmlBlasterReadFromSocketFuncHolder::userP

Definition at line 44 of file helper.h.

Referenced by getCallbackServerUnparsed(), getXmlBlasterConnectionUnparsed(), initialize(), and parseSocketData().

XmlBlasterNumReadFunc XmlBlasterReadFromSocketFuncHolder::numReadFuncP

You can register a function pointer listener to be informed about the socket read progress.

The function will be called than and again during reading the socket with the currently read bytes. Example:

 static void progress(void *numReadUserP, const size_t currBytesRead, const size_t nbytes) {
     printf("currBytesRead=%ld nbytes=%ld\n", (long)currBytesRead, (long)nbytes);
 }
 
The pointer may remain NULL.

Definition at line 57 of file helper.h.

Referenced by getCallbackServerUnparsed(), main(), parseSocketData(), shutdownCallbackServer(), and xmlBlasterUnmanagedCERegisterProgressListener().

void* XmlBlasterReadFromSocketFuncHolder::numReadUserP

This will be looped through to numReadFuncP.

Definition at line 61 of file helper.h.

Referenced by getCallbackServerUnparsed(), main(), parseSocketData(), and xmlBlasterUnmanagedCERegisterProgressListener().


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