sipxportlib  Version 3.3
Public Member Functions | Protected Member Functions | List of all members
OsNatServerSocket Class Reference

#include <OsNatServerSocket.h>

Inheritance diagram for OsNatServerSocket:
Inheritance graph
[legend]
Collaboration diagram for OsNatServerSocket:
Collaboration graph
[legend]

Public Member Functions

 OsNatServerSocket (int connectionQueueSize, int serverPort=PORT_DEFAULT, const char *szBindAddr=NULL, const bool bPerformBind=true)
 
OsNatServerSocketoperator= (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)
 
OsServerSocketoperator= (const OsServerSocket &rhs)
 param: connectionQueueSize - The maximum number of outstanding More...
 
virtual ~OsServerSocket ()
 
virtual OsConnectionSocketaccept ()
 
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 OsConnectionSocketcreateConnectionSocket (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
 

Constructor & Destructor Documentation

OsNatServerSocket ( int  connectionQueueSize,
int  serverPort = PORT_DEFAULT,
const char *  szBindAddr = NULL,
const bool  bPerformBind = true 
)
~OsNatServerSocket ( )
virtual

Member Function Documentation

OsNatServerSocket& operator= ( const OsServerSocket rhs)

param: connectionQueueSize - The maximum number of outstanding

param: serverPort - The port on which the server will listen to

OsConnectionSocket * createConnectionSocket ( UtlString  localIp,
int  descriptor 
)
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.