class FinderTcpListenerBase
|
|
|
|
Public Types
Public Methods
Protected Methods
Protected Members
typedef vector<IPv4> AddrList | AddrList |
typedef vector<IPv4Net> NetList | NetList |
~FinderTcpListenerBase ()
| ~FinderTcpListenerBase |
[virtual]
bool connection_event (int fd)
| connection_event |
[pure virtual]
Method called when a connection is accepted and matches permitted
access conditions.
Parameters:
fd | file descriptor associated with new connection.
|
Returns: true if instance agrees to take responsibility for file
descriptor, false otherwise.
[const]
Determine whether listener is enabled.
void set_enabled (bool en)
| set_enabled |
Control whether listener is enabled.
inline IPv4 address ()
| address |
[const]
Get interface address listener is operating on.
inline uint16_t port ()
| port |
[const]
Get port listener is bound to.
void connect_hook (int fd, SelectorMask m)
| connect_hook |
[protected]
Accepts connection, checks source address, and then calls
connection_event() if source is valid.
[protected]
[protected]
[protected const]
[protected]
[protected]
[protected]
[protected]
[protected]
AddrList _ok_addrs
| _ok_addrs |
[protected]
NetList _ok_nets
| _ok_nets |
[protected]
Generated by: pavlin on possum.icir.org on Mon Jun 9 13:23:50 2003, using kdoc 2.0a54+XORP. |