#include <sue_inet.hpp>
Inheritance diagram for SUEInetDuplexSession:
Public Methods | |
SUEInetDuplexSession (int a_timeout, const char *a_greeting=0) | |
virtual | ~SUEInetDuplexSession () |
void | Startup (SUEEventSelector *a_selector, int a_fd, const char *a_greeting=0) |
Start the session. | |
unsigned long | GetLocalIp () const |
IP of the local endpoint. |
This class is intended to incapsulate the functionality common for AF_INET sockets.
This particular verision adds to a generic duplex session object the capability of knowing the ip address of the local end of the connection.
|
|
|
|
|
IP of the local endpoint. The method returns the ip-address of the local endpoint of the connected socket (obtained with getsockname(2)). It is perfectly safe to request the address even when the session is already shot down because the address is always requested when the session starts up.
|
|
Start the session. This method hides (incapsulates) the SUEGenericDuplexSession::Startup() method in order to do some specific manipulations.
Reimplemented from SUEGenericDuplexSession. |