#include <Connector.h>
Inheritance diagram for channel::Connector< Channel, Transport >:
Public Types | |
typedef ConnHandler< Channel, Transport > | ConnHandler |
typedef Interface< Channel > | Interface |
typedef RemoteInterface< Channel, ConnHandler > | RemoteInterface |
typedef Binder< typename Channel::IdType, typename Channel::IdTrait > | Binder |
typedef Filter< typename Channel::IdType, typename Channel::IdTrait > | Filter |
typedef Translator< typename Channel::IdType, typename Channel::IdTrait > | Translator |
Public Member Functions | |
Connector (Channel *mchan, bool dt=false, int nt=1) | |
~Connector () | |
Status | open (std::string addr) |
open connector, start listening at address | |
Status | open (void) |
open connector, start listening at address | |
Status | startup (void) |
Status | shutdown (void) |
Status | close (void) |
connector close, all interanl threads exit | |
Status | connect (std::string addr_str, Binder *b=NULL) |
Status | connect (ConnInfo addr, Binder *bind=NULL) |
Status | disconnect (std::string addr) |
disconnect from remote channel at addr | |
Status | add_conn (ConnInfo peer_addr, ConnHandler *ch) |
Status | del_conn (ConnHandler *ch) |
Status | del_conn (ConnInfo addr) |
bool | is_connected (ConnInfo addr) |
Static Public Member Functions | |
static Interface_Type | type (void) |
type of transport | |
static void * | run_event_loop (void *arg) |
Public Attributes | |
bool | exit_start_ |
ACE_Thread_Semaphore | exit_sema_ |
conn threads start exiting | |
Channel * | ch_ |
Protected Attributes | |
OutputMgr< Channel, ConnHandler > | output_mgr_ |
output thread-pool | |
int | num_thr_ |
bool | driver_thread_ |
std::map< ConnInfo, ConnHandler * > | conn_map_ |
ACE_Thread_Mutex | conn_map_lock_ |
Friends | |
class | ConnHandler |
class | RemoteInterface |
Definition at line 84 of file Connector.h.
|
Reimplemented from channel::BinderRegistry< Channel::IdType, Channel::IdTrait >. Definition at line 95 of file Connector.h. |
|
Definition at line 92 of file Connector.h. |
|
Definition at line 96 of file Connector.h. |
|
Definition at line 93 of file Connector.h. |
|
Definition at line 94 of file Connector.h. |
|
Definition at line 97 of file Connector.h. |
|
Definition at line 117 of file Connector.h. |
|
Definition at line 124 of file Connector.h. |
|
The following are methods for managing conn_map duplicated conn, should be dropped conn_map_[peer_addr]->dump(); Definition at line 236 of file Connector.h. Referenced by channel::ConnHandler< Channel, TcpSockTransport< Channel > >::set_up(). |
|
connector close, all interanl threads exit gracely shutdown wait for read thread to exit Definition at line 179 of file Connector.h. |
|
connect to remote channel addr: remote channel address Binder: the filter and translator specified at local interface Definition at line 212 of file Connector.h. |
|
connect to remote channel addr_str: remote channel address Binder: the filter and translator specified at local interface Definition at line 203 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::connect(), and cvm::cvm::CvmBaseConnector< Chan > >::init(). |
|
Definition at line 259 of file Connector.h. |
|
Definition at line 248 of file Connector.h. Referenced by channel::ConnHandler< Channel, TcpSockTransport< Channel > >::service(). |
|
disconnect from remote channel at addr
Definition at line 229 of file Connector.h. |
|
Definition at line 265 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::connect(). |
|
open connector, start listening at address
Definition at line 155 of file Connector.h. |
|
open connector, start listening at address
Definition at line 141 of file Connector.h. Referenced by cvm::cvm::CvmBaseConnector< Chan > >::init(). |
|
Definition at line 131 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::startup(). |
|
Definition at line 170 of file Connector.h. |
|
Definition at line 165 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::open(). |
|
type of transport
Definition at line 127 of file Connector.h. Referenced by cvm::cvm::CvmBaseConnector< Chan > >::init(). |
|
Definition at line 87 of file Connector.h. |
|
Definition at line 88 of file Connector.h. |
|
Definition at line 115 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::Connector(), and channel::ConnHandler< Channel, TcpSockTransport< Channel > >::set_up(). |
|
current active connections indexed by remote listening addresses, which is fixed for rmt systems Definition at line 110 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::add_conn(), channel::Connector< Channel, TcpSockTransport< Channel > >::close(), and channel::Connector< Channel, TcpSockTransport< Channel > >::Connector(). |
|
Definition at line 111 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::add_conn(), and channel::Connector< Channel, TcpSockTransport< Channel > >::close(). |
|
Definition at line 107 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::Connector(), and channel::Connector< Channel, TcpSockTransport< Channel > >::open(). |
|
conn threads start exiting
Definition at line 100 of file Connector.h. Referenced by channel::Unix_ConnHandler< Channel >::close(), channel::Tcp_ConnHandler< Channel >::close(), and channel::Connector< Channel, TcpSockTransport< Channel > >::close(). |
|
|
Definition at line 106 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::Connector(), and channel::Connector< Channel, TcpSockTransport< Channel > >::open(). |
|
output thread-pool
Definition at line 105 of file Connector.h. Referenced by channel::Connector< Channel, TcpSockTransport< Channel > >::close(), and channel::Connector< Channel, TcpSockTransport< Channel > >::open(). |