channel::UnixSockTransport< Channel > Class Template Reference

transport class for connection using unix domain socket More...

#include <UnixSockConnector.h>

List of all members.

Public Member Functions

 UnixSockTransport (Connector *c)
std::string unix_addr (void)
Status get_map_index (ConnInfo &addr)
 return unix addr as the index of conn_map_
Status open (ConnInfo ci)
 start listening at addr(ci) for remote connections
Status close (void)
Status connect (ConnInfo addr, ConnHandler *&conn_handler)
 actively connect to remote channel
Status disconnect (ConnInfo addr)

Static Public Member Functions

static Interface_Type type (void)

Private Types

typedef ConnHandler< Channel,
UnixSockTransport< Channel > > 
ConnHandler
typedef Connector< Channel,
UnixSockTransport< Channel > > 
Connector

Private Attributes

std::string unix_addr_
Unix_Acceptor< Channelunix_acceptor_
Unix_Connector< Channelunix_connector_


Detailed Description

template<class Channel>
class channel::UnixSockTransport< Channel >

transport class for connection using unix domain socket

Definition at line 158 of file UnixSockConnector.h.


Member Typedef Documentation

template<class Channel>
typedef Connector<Channel, UnixSockTransport<Channel> > channel::UnixSockTransport< Channel >::Connector [private]
 

Definition at line 160 of file UnixSockConnector.h.

template<class Channel>
typedef ConnHandler<Channel, UnixSockTransport<Channel> > channel::UnixSockTransport< Channel >::ConnHandler [private]
 

Reimplemented in channel::Connector< Channel, UnixSockTransport< Channel > >, and channel::Connector< Channel, UnixSockTransport< Channel > >.

Definition at line 159 of file UnixSockConnector.h.


Constructor & Destructor Documentation

template<class Channel>
channel::UnixSockTransport< Channel >::UnixSockTransport Connector c  )  [inline]
 

Definition at line 172 of file UnixSockConnector.h.

References channel::UNDEFINED_UNIX_ADDR, channel::UnixSockTransport< Channel >::unix_acceptor_, channel::UnixSockTransport< Channel >::unix_addr_, and channel::UnixSockTransport< Channel >::unix_connector_.


Member Function Documentation

template<class Channel>
Status channel::UnixSockTransport< Channel >::close void   )  [inline]
 

Reimplemented in channel::Connector< Channel, UnixSockTransport< Channel > >.

Definition at line 210 of file UnixSockConnector.h.

References channel::SUCCESS, and channel::UNDEFINED_UNIX_ADDR.

template<class Channel>
Status channel::UnixSockTransport< Channel >::connect ConnInfo  addr,
ConnHandler *&  conn_handler
[inline]
 

actively connect to remote channel

Definition at line 218 of file UnixSockConnector.h.

References channel::ConnInfo::dump(), channel::FAILURE, channel::SUCCESS, channel::ConnInfo::unix_addr(), and channel::unix_path_prefix.

template<class Channel>
Status channel::UnixSockTransport< Channel >::disconnect ConnInfo  addr  )  [inline]
 

Definition at line 239 of file UnixSockConnector.h.

References channel::SUCCESS.

template<class Channel>
Status channel::UnixSockTransport< Channel >::get_map_index ConnInfo addr  )  [inline]
 

return unix addr as the index of conn_map_

Definition at line 183 of file UnixSockConnector.h.

References channel::SUCCESS.

template<class Channel>
Status channel::UnixSockTransport< Channel >::open ConnInfo  ci  )  [inline]
 

start listening at addr(ci) for remote connections

Definition at line 191 of file UnixSockConnector.h.

References channel::FAILURE, channel::UNDEFINED_UNIX_ADDR, channel::UnixSockTransport< Channel >::unix_acceptor_, channel::ConnInfo::unix_addr(), channel::UnixSockTransport< Channel >::unix_addr_, and channel::unix_path_prefix.

template<class Channel>
static Interface_Type channel::UnixSockTransport< Channel >::type void   )  [inline, static]
 

Reimplemented in channel::Connector< Channel, UnixSockTransport< Channel > >.

Definition at line 177 of file UnixSockConnector.h.

References channel::UNIX_SOCK.

template<class Channel>
std::string channel::UnixSockTransport< Channel >::unix_addr void   )  [inline]
 

Definition at line 180 of file UnixSockConnector.h.

References channel::UnixSockTransport< Channel >::unix_addr_.

Referenced by channel::RemoteInterface< Channel, Transport >::send2remote_chan_info().


Member Data Documentation

template<class Channel>
Unix_Acceptor<Channel> channel::UnixSockTransport< Channel >::unix_acceptor_ [private]
 

Definition at line 166 of file UnixSockConnector.h.

Referenced by channel::UnixSockTransport< Channel >::open(), and channel::UnixSockTransport< Channel >::UnixSockTransport().

template<class Channel>
std::string channel::UnixSockTransport< Channel >::unix_addr_ [private]
 

Definition at line 164 of file UnixSockConnector.h.

Referenced by channel::UnixSockTransport< Channel >::open(), channel::UnixSockTransport< Channel >::unix_addr(), and channel::UnixSockTransport< Channel >::UnixSockTransport().

template<class Channel>
Unix_Connector<Channel> channel::UnixSockTransport< Channel >::unix_connector_ [private]
 

Definition at line 168 of file UnixSockConnector.h.

Referenced by channel::UnixSockTransport< Channel >::UnixSockTransport().


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 19:59:24 2006 for channel by  doxygen 1.4.6-NO