channel::ConnInfo Class Reference

#include <ConnInfo.h>

List of all members.

Public Member Functions

 ConnInfo ()
 ConnInfo (const ConnInfo &ci)
void parse (std::string conn_info)
 ConnInfo (std::string ip, int port)
void set (std::string ip, int port)
 ConnInfo (std::string addr)
void set (std::string addr)
Interface_Type type (void)
bool valid (void)
std::string ip (void)
void ip (std::string ip)
u_short port (void)
void port (u_short p)
std::string get_host_addr (void)
void set_host_addr (std::string hn)
u_short get_port_number (void)
void set_port_number (u_short p)
std::string unix_addr (void)
bool operator< (const ConnInfo &ci) const
bool operator== (const ConnInfo &ci) const
void dump (void)

Public Attributes

Interface_Type type_
std::string ip_
u_short port_
std::string unix_addr_
bool valid_


Detailed Description

helper class to encode/decode remote channel address (ip:port or unix_addr)

Definition at line 23 of file ConnInfo.h.


Constructor & Destructor Documentation

channel::ConnInfo::ConnInfo  )  [inline]
 

Definition at line 31 of file ConnInfo.h.

channel::ConnInfo::ConnInfo const ConnInfo ci  )  [inline]
 

Definition at line 33 of file ConnInfo.h.

References ip_, port_, type_, unix_addr_, and valid_.

channel::ConnInfo::ConnInfo std::string  ip,
int  port
[inline]
 

Definition at line 43 of file ConnInfo.h.

References channel::INET_SOCK, ip_, port_, type_, and valid_.

channel::ConnInfo::ConnInfo std::string  addr  )  [inline]
 

Definition at line 57 of file ConnInfo.h.

References parse().


Member Function Documentation

void ConnInfo::dump void   ) 
 

Definition at line 56 of file ConnInfo.cpp.

References channel::INET_SOCK, ip_, port_, type_, and channel::UNIX_SOCK.

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

std::string channel::ConnInfo::get_host_addr void   )  [inline]
 

Definition at line 76 of file ConnInfo.h.

References ip_.

Referenced by channel::TcpSockTransport< Channel >::get_map_index().

u_short channel::ConnInfo::get_port_number void   )  [inline]
 

Definition at line 78 of file ConnInfo.h.

References port_.

void channel::ConnInfo::ip std::string  ip  )  [inline]
 

Definition at line 70 of file ConnInfo.h.

References ip_.

std::string channel::ConnInfo::ip void   )  [inline]
 

Definition at line 69 of file ConnInfo.h.

References ip_.

Referenced by channel::TcpSockTransport< Channel >::connect(), and channel::TcpSockTransport< Channel >::get_map_index().

bool ConnInfo::operator< const ConnInfo ci  )  const
 

Definition at line 91 of file ConnInfo.cpp.

References channel::INET_SOCK, ip_, port_, type_, unix_addr_, and channel::UNIX_SOCK.

bool ConnInfo::operator== const ConnInfo ci  )  const
 

Definition at line 71 of file ConnInfo.cpp.

References channel::INET_SOCK, ip_, port_, type_, unix_addr_, and channel::UNIX_SOCK.

void channel::ConnInfo::parse std::string  conn_info  ) 
 

Referenced by ConnInfo(), and set().

void channel::ConnInfo::port u_short  p  )  [inline]
 

Definition at line 72 of file ConnInfo.h.

References port_.

u_short channel::ConnInfo::port void   )  [inline]
 

Definition at line 71 of file ConnInfo.h.

References port_.

Referenced by channel::TcpSockTransport< Channel >::connect(), channel::TcpSockTransport< Channel >::get_map_index(), channel::TcpSockTransport< Channel >::open(), and set_port_number().

void channel::ConnInfo::set std::string  addr  )  [inline]
 

Definition at line 61 of file ConnInfo.h.

References parse().

void channel::ConnInfo::set std::string  ip,
int  port
[inline]
 

Definition at line 50 of file ConnInfo.h.

References channel::INET_SOCK, ip_, port_, type_, and valid_.

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

void channel::ConnInfo::set_host_addr std::string  hn  )  [inline]
 

Definition at line 77 of file ConnInfo.h.

References ip_.

void channel::ConnInfo::set_port_number u_short  p  )  [inline]
 

Definition at line 79 of file ConnInfo.h.

References port().

Interface_Type channel::ConnInfo::type void   )  [inline]
 

Definition at line 65 of file ConnInfo.h.

References type_.

Referenced by channel::RemoteInterface< Channel, Transport >::notify_connected(), and Ctrl_Task::work().

std::string channel::ConnInfo::unix_addr void   )  [inline]
 

Definition at line 81 of file ConnInfo.h.

References unix_addr_.

Referenced by channel::UnixSockTransport< Channel >::connect(), channel::RemoteInterface< Channel, Transport >::notify_connected(), and channel::UnixSockTransport< Channel >::open().

bool channel::ConnInfo::valid void   )  [inline]
 

Definition at line 67 of file ConnInfo.h.

References valid_.

Referenced by channel::RemoteInterface< Channel, Transport >::notify_connected(), and Ctrl_Task::work().


Member Data Documentation

std::string channel::ConnInfo::ip_
 

Definition at line 26 of file ConnInfo.h.

Referenced by ConnInfo(), dump(), get_host_addr(), ip(), operator<(), operator==(), set(), and set_host_addr().

u_short channel::ConnInfo::port_
 

Definition at line 27 of file ConnInfo.h.

Referenced by ConnInfo(), dump(), get_port_number(), operator<(), operator==(), port(), and set().

Interface_Type channel::ConnInfo::type_
 

Definition at line 25 of file ConnInfo.h.

Referenced by ConnInfo(), dump(), operator<(), operator==(), set(), and type().

std::string channel::ConnInfo::unix_addr_
 

Definition at line 28 of file ConnInfo.h.

Referenced by ConnInfo(), operator<(), operator==(), and unix_addr().

bool channel::ConnInfo::valid_
 

Definition at line 29 of file ConnInfo.h.

Referenced by ConnInfo(), set(), and valid().


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