|
C/C++ Reference
|
EventHandler bi-directional asynchronous communication stack. More...
#include <EvntHndl.h>
Public Member Functions | |
| void | addConListener (EhConListener *cl) |
| Adds a EhConListener interface class to the EventHandler. | |
| HttpConnection * | getCon (U32 cid) |
| Returns the internal HttpConnection PushCon object if found. | |
| HttpServer * | getServer () |
| Returns a pointer to the HttpServer. | |
| HttpSession * | getSession (U32 cid) |
| Returns the HttpSession object or null if no session object. | |
| AuthenticatedUser * | getUser (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. | |
| ThreadMutex * | getMutex () |
| get the dispatcher mutex | |
| void | mutexSet () |
| Lock the Barracuda web-server. | |
| void | mutexRelease () |
| Unlock the Barracuda web-server. | |
EventHandler bi-directional asynchronous communication stack.
You do not directly create an instance of this class. See EhDir for more information.