#include <SocketDescriptor.h>
Inheritance diagram for ServerSocketDescriptor:
Public Methods | |
ServerSocketDescriptor (ref< FileDescriptorManager > const &_fdMgr, int _port=0, string const &_hostname="") | |
ref<SocketDescriptor> | accept () |
string const& | getCanonicalAddress () const |
Private Attributes | |
string | canonicalAddress |
Definition at line 81 of file SocketDescriptor.h.
|
Construct a TCP server-socket listening on the given port, unless 0 is specified, in which case an unused port is used, on the given interface-name, unless the empty-string is specified, in which case INADDR_ANY is used (ie. bind() to all interfaces if no preference is supplied). |
|
Calls accept() and returns a SocketDescriptor for the resulting new connection. Throws FileDescriptor::Exception on failure. Referenced by AcceptCallback::acceptHandler(). |
|
Retrieves the IP address and port number that this server socket is bound to.
Definition at line 101 of file SocketDescriptor.h. |
|
Definition at line 83 of file SocketDescriptor.h. |