#include <SocketDescriptor.h>
Inheritance diagram for SocketDescriptor:
Public Methods | |
virtual void | close () |
AddressAccessors | |
Accessors for local and remote address information for this socket. | |
string const& | getLocalHostname () const |
int | getLocalPort () const |
string const& | getRemoteHostname () const |
int | getRemotePort () const |
Protected Methods | |
virtual int | lowlevel_read (int fd, char *buf, int len) |
virtual int | lowlevel_write (int fd, char const *buf, int len) |
SocketDescriptor (ref< FileDescriptorManager > const &_fdMgr, int _fd) | |
void | setLocalAddr (string const &hostname, int port) |
void | setRemoteAddr (string const &hostname, int port) |
Private Attributes | |
string | hostname_local |
int | port_local |
string | hostname_remote |
int | port_remote |
Friends | |
class | ServerSocketDescriptor |
Definition at line 19 of file SocketDescriptor.h.
|
Definition at line 37 of file SocketDescriptor.h. |
|
Overridden to deal with shutdown() before close().
Reimplemented from FileDescriptor. |
|
Definition at line 63 of file SocketDescriptor.h. |
|
Definition at line 64 of file SocketDescriptor.h. |
|
Definition at line 65 of file SocketDescriptor.h. |
|
Definition at line 66 of file SocketDescriptor.h. |
|
Override to use recv and send if on linux or win32.
Reimplemented from FileDescriptor. |
|
Reimplemented from FileDescriptor. |
|
Definition at line 45 of file SocketDescriptor.h. |
|
Definition at line 50 of file SocketDescriptor.h. |
|
Definition at line 36 of file SocketDescriptor.h. |
|
Name of the IP-address of the local end of the socket.
Definition at line 21 of file SocketDescriptor.h. |
|
Name of the IP-address of the remote end of the socket.
Definition at line 24 of file SocketDescriptor.h. |
|
Port number of the local end of the socket.
Definition at line 22 of file SocketDescriptor.h. |
|
Port number of the remote end of the socket.
Definition at line 25 of file SocketDescriptor.h. |