xorp

BGPPeerList Class Reference

List of all members.

Public Member Functions

void all_stop (bool restart=false)
 Stop all the peerings.
bool not_all_idle ()
 Are the peers idle? Used to poll the peers when BGP is being gracefully taken down.
void add_peer (BGPPeer *p)
 Add this peer to the peer list.
void remove_peer (BGPPeer *p)
 Remove the peer from the peer list and delete it.
void detach_peer (BGPPeer *p)
 Detach this peer from the peer list (DO NOT DELETE IT).
list< BGPPeer * > & get_list ()
 Get the list of attached peers.
void dump_list ()
 Debugging entry point that prints all the peers.
bool get_peer_list_start (uint32_t &token)
 Aquire a token that can be used to scan through the peers.
bool get_peer_list_next (const uint32_t &token, string &local_ip, uint32_t &local_port, string &peer_ip, uint32_t &peer_port)
 Using the token get information about the peers.

Private Attributes

list< BGPPeer * > _peers
map< uint32_t, list< BGPPeer * >
::iterator > 
_readers
uint32_t _next_token

Member Function Documentation

void BGPPeerList::all_stop ( bool  restart = false)

Stop all the peerings.

Parameters:
restartif true will bounce the peerings, if false the peerings will be taken down and kept down.
bool BGPPeerList::not_all_idle ( )

Are the peers idle? Used to poll the peers when BGP is being gracefully taken down.

Returns:
true while peers are still active.

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