sipxportlib
Version 3.3
|
#include <OsNatServerSocket.h>
Public Member Functions | |
OsNatServerSocket (int connectionQueueSize, int serverPort=PORT_DEFAULT, const char *szBindAddr=NULL, const bool bPerformBind=true) | |
OsNatServerSocket & | operator= (const OsServerSocket &rhs) |
param: connectionQueueSize - The maximum number of outstanding More... | |
virtual | ~OsNatServerSocket () |
Public Member Functions inherited from OsServerSocket | |
OsServerSocket (int connectionQueueSize, int serverPort=PORT_DEFAULT, const char *szBindAddr=NULL, const bool bPerformBind=true) | |
OsServerSocket & | operator= (const OsServerSocket &rhs) |
param: connectionQueueSize - The maximum number of outstanding More... | |
virtual | ~OsServerSocket () |
virtual OsConnectionSocket * | accept () |
virtual void | close () |
returns: Returns a socket connected to the client requesting the returns: connection. If an error occurs returns NULL. More... | |
virtual int | getSocketDescriptor () const |
virtual int | getLocalHostPort () const |
virtual void | getBindIp (UtlString &ip) const |
virtual UtlBoolean | isOk () const |
int | isConnectionReady () |
Protected Member Functions | |
virtual OsConnectionSocket * | createConnectionSocket (UtlString localIp, int descriptor) |
returns: 1 if one or call to accept() will not block returns: 0 if no connections are ready (i.e. accept() will block). More... | |
Additional Inherited Members | |
Protected Attributes inherited from OsServerSocket | |
OsAtomicLightInt | socketDescriptor |
int | localHostPort |
UtlString | mLocalIp |
OsNatServerSocket | ( | int | connectionQueueSize, |
int | serverPort = PORT_DEFAULT , |
||
const char * | szBindAddr = NULL , |
||
const bool | bPerformBind = true |
||
) |
|
virtual |
OsNatServerSocket& operator= | ( | const OsServerSocket & | rhs | ) |
param: connectionQueueSize - The maximum number of outstanding
param: serverPort - The port on which the server will listen to
|
protectedvirtual |
returns: 1 if one or call to accept() will not block
returns: 0 if no connections are ready (i.e. accept() will block).
Reimplemented from OsServerSocket.