xorp

FinderTcpListenerBase Class Reference

Inheritance diagram for FinderTcpListenerBase:
NONCOPYABLE DummyFinder FinderTcpListener

List of all members.

Public Types

typedef vector< IPv4AddrList
typedef vector< IPv4NetNetList

Public Member Functions

 FinderTcpListenerBase (EventLoop &e, IPv4 iface, uint16_t port, bool en=true) throw (InvalidAddress, InvalidPort)
virtual bool connection_event (XorpFd fd)=0
 Method called when a connection is accepted and matches permitted access conditions.
bool enabled () const
 Determine whether listener is enabled.
void set_enabled (bool en)
 Control whether listener is enabled.
IPv4 address () const
 Get interface address listener is operating on.
uint16_t port () const
 Get port listener is bound to.

Protected Member Functions

void connect_hook (XorpFd fd, IoEventType type)
 Accepts connection, checks source address, and then calls connection_event() if source is valid.
EventLoopeventloop () const

Protected Attributes

EventLoop_e
XorpFd _lsock
bool _en
IPv4 _addr
uint16_t _port
AddrList _ok_addrs
NetList _ok_nets

Member Function Documentation

virtual bool FinderTcpListenerBase::connection_event ( XorpFd  fd) [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.

Implemented in FinderTcpListener, and DummyFinder.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations