class FinderTcpListenerBase


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Methods

Protected Members


Detailed Description

typedef vector<IPv4> AddrList

AddrList

typedef vector<IPv4Net> NetList

NetList

 FinderTcpListenerBase (EventLoop& e, IPv4 interface, uint16_t port, bool en = true)
throw (InvalidAddress, InvalidPort)

FinderTcpListenerBase

 ~FinderTcpListenerBase ()

~FinderTcpListenerBase

[virtual]

bool  connection_event (XorpFd fd)

connection_event

[pure virtual]

Method called when a connection is accepted and matches permitted access conditions.

Parameters:

fdfile descriptor associated with new connection.

Returns: true if instance agrees to take responsibility for file descriptor, false otherwise.

bool  enabled ()

enabled

[const]

Determine whether listener is enabled.

void  set_enabled (bool en)

set_enabled

Control whether listener is enabled.

IPv4  address ()

address

[const]

Get interface address listener is operating on.

uint16_t  port ()

port

[const]

Get port listener is bound to.

void  connect_hook (XorpFd fd, IoEventType type)

connect_hook

[protected]

Accepts connection, checks source address, and then calls connection_event() if source is valid.

 FinderTcpListenerBase (const FinderTcpListenerBase&)

FinderTcpListenerBase

[protected]

FinderTcpListenerBase&  operator= (const FinderTcpListenerBase&)

operator=

[protected]

EventLoop&  eventloop ()

eventloop

[protected const]

EventLoop& _e

_e

[protected]

XorpFd _lsock

_lsock

[protected]

bool _en

_en

[protected]

IPv4 _addr

_addr

[protected]

uint16_t _port

_port

[protected]

AddrList _ok_addrs

_ok_addrs

[protected]

NetList _ok_nets

_ok_nets

[protected]


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:36 2008, using kdoc 2.0a54+XORP.