|
enum | Type { IOH_UNKNOWN,
IOH_SSL
} |
|
|
static void * | operator new (size_t, void *m) |
|
static void * | operator new (size_t) |
|
static void | operator delete (void *) |
|
◆ IOHookProvider()
IOHookProvider::IOHookProvider |
( |
Module * |
mod, |
|
|
const std::string & |
Name, |
|
|
Type |
hooktype = IOH_UNKNOWN , |
|
|
bool |
middle = false |
|
) |
| |
|
inline |
Constructor
- Parameters
-
mod | Module that owns the IOHookProvider |
Name | Name of the provider |
hooktype | One of IOHookProvider::Type |
middle | True if the IOHook instances created by this hook are subclasses of IOHookMiddle, false otherwise |
◆ IsMiddle()
bool IOHookProvider::IsMiddle |
( |
| ) |
const |
|
inline |
Check if the IOHook provided can appear in the non-last position of a hook chain. That is the case if and only if the IOHook instances created are subclasses of IOHookMiddle.
- Returns
- True if the IOHooks provided are subclasses of IOHookMiddle
◆ OnAccept()
Called when the provider should hook an incoming connection and act as being on the server-side of the connection. This occurs when a bind block has a hook configured and the listener accepts a connection.
- Parameters
-
sock | Socket to hook |
client | Client IP address and port |
server | Server IP address and port |
◆ OnConnect()
virtual void IOHookProvider::OnConnect |
( |
StreamSocket * |
sock | ) |
|
|
pure virtual |
Called when the provider should hook an outgoing connection and act as being on the client side of the connection.
- Parameters
-
The documentation for this class was generated from the following file: