class AcceptSession


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 AcceptSession (BGPPeer& peer, XorpFd sock)

AcceptSession

 ~AcceptSession ()

~AcceptSession

void  start ()

start

Start the FSM.

void  no_open_received ()

no_open_received

Timeout routine that is called if no messages are seen from the peer. Ideally an open message should be seen from the peer.

void  remove ()

remove

This FSM has done its job signal to the peer to remove this class. This should be the last method to be called in any methods.

void  send_notification_accept (const NotificationPacket& np)

send_notification_accept

Send a notification.

void  send_notification_cb (SocketClient::Event ev, const uint8_t* buf)

send_notification_cb

Notification callback.

void  cease ()

cease

Send a cease.

void  collision ()

collision

The main FSM is in state OPENCONFIRM so both IDs are available to resolve the collision.

void  event_openmess_accept (const OpenPacket& p)

event_openmess_accept

An open message has just been received on the accept socket decide and keep the winner.

void  swap_sockets ()

swap_sockets

Swap the socket in this class with the one in the main FSM.

void  swap_sockets (const OpenPacket& p)

swap_sockets

Replace this socket with the one in the main FSM and feed in an open packet.

void  notify_peer_of_error_accept (const int error, const int subcode = UNSPECIFIED, const uint8_t*data = 0, const size_t len = 0)

notify_peer_of_error_accept

void  event_tranfatal_accept ()

event_tranfatal_accept

void  event_closed_accept ()

event_closed_accept

Called if the TCP connection is closed.

void  event_keepmess_accept ()

event_keepmess_accept

Called if a keepalive message is seen.

void  event_recvupdate_accept (const UpdatePacket& p)

event_recvupdate_accept

Called if a update message is seen.

void  event_recvnotify_accept (const NotificationPacket& p)

event_recvnotify_accept

Called if a notify message is seen.

bool  get_message_accept (BGPPacket::Status status, const uint8_t *buf, size_t len, SocketClient *socket_client)

get_message_accept

Handle incoming messages.

bool  is_connected ()

is_connected

bool  still_reading ()

still_reading

void  ignore_message ()

ignore_message

bool  accept_message ()

accept_message

[const]

string  str ()

str


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:04 2009, using kdoc 2.0a54+XORP.