#include <sockconn.h>


Public Member Functions | |
| SocketConnector (SocketAddressP &address) | |
| Construct a SocketConnector. | |
| virtual void | connect () |
| Connect to the socket. | |
| std::string | get_id () const |
| Generate an ID string to indicate what we're connected to. | |
Protected Attributes | |
| SocketAddressP | sock_addr |
| Address of the socket we're connected to. | |
Related Functions | |
| (Note that these are not member functions.) | |
| struct sockaddr * | build_addr (Config &conf) |
It knows how to connect to a socket (the address of which is stored internally as a struct sockaddr*), disconnect, and read and write on the socket. It will send a disconnection notification Message to the specified owner object when the socket is closed.
Definition at line 63 of file sockconn.h.
| SocketConnector::SocketConnector | ( | SocketAddressP & | address | ) |
Construct a SocketConnector.
The type of connector will be determined by the subclass of SocketAddress that's passed into this constructor.
Definition at line 54 of file sockconn.cc.
References connect().

| void SocketConnector::connect | ( | void | ) | [virtual] |
Connect to the socket.
Definition at line 73 of file sockconn.cc.
References FDConnector::connect(), and sock_addr.
Referenced by SocketConnector().


| std::string SocketConnector::get_id | ( | void | ) | const [virtual] |
Generate an ID string to indicate what we're connected to.
Reimplemented from FDConnector.
Definition at line 119 of file sockconn.cc.
References sock_addr.
| struct sockaddr * build_addr | ( | Config & | conf | ) | [related] |
SocketAddressP SocketConnector::sock_addr [protected] |
1.5.5