C/C++ Reference
EventHandler Struct Reference

EventHandler bi-directional asynchronous communication stack. More...

#include <EvntHndl.h>

List of all members.

Public Member Functions

void addConListener (EhConListener *cl)
 Adds a EhConListener interface class to the EventHandler.
HttpConnectiongetCon (U32 cid)
 Returns the internal HttpConnection PushCon object if found.
HttpServergetServer ()
 Returns a pointer to the HttpServer.
HttpSessiongetSession (U32 cid)
 Returns the HttpSession object or null if no session object.
AuthenticatedUsergetUser (U32 cid)
 Returns the AuthenticatedUser object if user is authenticated, otherwise null is returned.
int sendData (U32 cid, const char *intf, const char *method, const char *fmt,...)
 Send a message to one client.
int sendData2All (const char *intf, const char *method, const char *fmt,...)
 Broadcast a message to all clients.
void sendErrMsg (U32 cid, const char *msg)
 Send error message to client.
void setTCPNoDelay (bool enable)
 Disable the TCP delay.
ThreadMutexgetMutex ()
 get the dispatcher mutex
void mutexSet ()
 Lock the Barracuda web-server.
void mutexRelease ()
 Unlock the Barracuda web-server.

Detailed Description

EventHandler bi-directional asynchronous communication stack.

You do not directly create an instance of this class. See EhDir for more information.