|
Public Types |
| enum | RegisterEHSResult |
| | Enumeration for error results for RegisterEHSResult.
|
| enum | UnregisterEHSResult |
| | Enumeration for error results for UnregisterEHSResult.
|
| enum | StartServerResult |
| | result codes for StartServer and StartSErver_Threaded
|
Public Member Functions |
| | EHS (EHS *ipoParent=NULL, std::string isRegisteredAs="") |
|
void | SetCertificateFile (std::string &irsCertificateFile) |
| | set the certificate file for use in HTTPS transactions
|
|
void | SetCertificatePassphrase (std::string &irsCertificatePassphrase) |
| | set certificate passphrase
|
|
void | SetPassphraseCallback (int(*m_ipfOverridePassphraseCallback)(char *, int, int, void *)) |
| | sets a new passphrase callback function
|
| void | SetParent (EHS *ipoParent, std::string isRegisteredAs) |
| RegisterEHSResult | RegisterEHS (EHS *ipoEHS, char *ipsRegisterPath) |
| | this associates an EHS object with this EHS object under the path ipsRegisterPath
|
| UnregisterEHSResult | UnregisterEHS (char *ipsRegisterPath) |
| | Unregister an EHS object from the specified path.
|
| ResponseCode | RouteRequest (HttpRequest *ipoHttpRequest, HttpResponse *ipoHttpResponse) |
| | this is responsible for routing a request through the EHS tree and sending the request to the final destination
|
|
virtual ResponseCode | HandleRequest (HttpRequest *ipoHttpRequest, HttpResponse *ipoHttpResponse) |
| | This function should be defined by the subclass.
|
| void | SetSourceEHS (EHS &iroSourceEHS) |
|
void | StopServer () |
| | brings down socket stuff. If StartServer_Threaded() was called it also stops that by setting the nServerStopped variable
|
| void | HandleData (int inTimeoutMilliseconds=0) |
| | This looks for incoming connections in EHSServer.
|
Public Attributes |
|
EHSServerParameters | m_oEHSServerParameters |
| | stores a map with server parameters
|
Protected Attributes |
|
EHSMap | oEHSMap |
| | stores path => EHSConnection pairs for path/tree traversal
|
|
EHS * | poParent |
| | points to the EHS object this object was registered with, NULL if top level
|
|
std::string | sRegisteredAs |
| | the string that this EHS object is regestered as
|
|
EHSServer * | poEHSServer |
| | EHSServer object associated with this EHS object.
|
|
EHS * | m_poSourceEHS |
| | source EHS object to route requests to for data instead of processing it ourselves
|
EHS provides HTTP server functionality to a child class. The child class must inherit from it and then override HandleRequest ( ).