class FinderTcpAutoConnector

Class to establish and manage a single connection to a FinderTcpListener. More...

Definition#include <finder_tcp_messenger.hh>
InheritsFinderMessengerManager [public ], FinderTcpConnector [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

Class to establish and manage a single connection to a FinderTcpListener. Should the connection fail after being established a new connection is started.

 FinderTcpAutoConnector (EventLoop& e, FinderMessengerManager& mm, XrlCmdMap& cmds, IPv4 host, uint16_t port, bool enabled = true)

FinderTcpAutoConnector

 ~FinderTcpAutoConnector ()

~FinderTcpAutoConnector

[virtual]

void  set_enabled (bool en)

set_enabled

bool  enabled ()

enabled

[const]

bool  connected ()

connected

[const]

void  do_auto_connect ()

do_auto_connect

[protected]

void  start_timer (uint32_t ms = 0)

start_timer

[protected]

void  stop_timer ()

stop_timer

[protected]

void  messenger_birth_event (FinderMessengerBase*)

messenger_birth_event

[protected]

Reimplemented from FinderMessengerManager.

void  messenger_death_event (FinderMessengerBase*)

messenger_death_event

[protected]

Reimplemented from FinderMessengerManager.

void  messenger_active_event (FinderMessengerBase*)

messenger_active_event

[protected]

Reimplemented from FinderMessengerManager.

void  messenger_inactive_event (FinderMessengerBase*)

messenger_inactive_event

[protected]

Reimplemented from FinderMessengerManager.

void  messenger_stopped_event (FinderMessengerBase*)

messenger_stopped_event

[protected]

Reimplemented from FinderMessengerManager.

bool  manages (const FinderMessengerBase*)

manages

[protected const]

Reimplemented from FinderMessengerManager.

FinderMessengerManager& _real_manager

_real_manager

[protected]

bool _connected

_connected

[protected]

bool _enabled

_enabled

[protected]

XorpTimer _retry_timer

_retry_timer

[protected]

int _last_error

_last_error

[protected]

size_t _consec_error

_consec_error

[protected]

static const uint32_t CONNECT_RETRY_PAUSE_MS

CONNECT_RETRY_PAUSE_MS

[protected]

static const uint32_t CONNECT_FAILS_BEFORE_LOGGING

CONNECT_FAILS_BEFORE_LOGGING

[protected]


Generated by: pavlin on possum.icir.org on Thu Aug 28 12:52:06 2003, using kdoc 2.0a54+XORP.