xorp

FinderServer Class Reference

A wrapper class for the components within a Finder. More...

#include <finder_server.hh>

List of all members.

Public Types

typedef list< FinderTcpListener * > Listeners

Public Member Functions

 FinderServer (EventLoop &e, IPv4 default_interface, uint16_t default_port) throw (InvalidAddress, InvalidPort)
 Constructor.
 ~FinderServer ()
 Destructor.
bool add_binding (IPv4 addr, uint16_t port) throw (InvalidAddress, InvalidPort)
 Add an additional interface and port to accept connections on.
bool remove_binding (IPv4 addr, uint16_t port)
 Remove an interface binding that was added by calling add_binding.
uint32_t connection_count () const
 Accessor to the number of connections the Finder has.
IPv4 addr () const
uint16_t port () const

Protected Attributes

EventLoop_e
Finder _f
FinderXrlTarget _fxt
Listeners _listeners

Detailed Description

A wrapper class for the components within a Finder.

Instantiates a Finder object and IPC infrastructure for Finder to accept accept incoming connections.


Member Function Documentation

bool FinderServer::add_binding ( IPv4  addr,
uint16_t  port 
) throw (InvalidAddress, InvalidPort)

Add an additional interface and port to accept connections on.

Returns:
true on success, false if binding already exists or cannot be instantiated.
bool FinderServer::remove_binding ( IPv4  addr,
uint16_t  port 
)

Remove an interface binding that was added by calling add_binding.

Returns:
true on success, false if binding does not exist or was not added by add_binding.

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