sipxportlib
Version 3.3
|
#include <OsServerSocket.h>
Public Member Functions | |
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... | |
Protected Attributes | |
OsAtomicLightInt | socketDescriptor |
int | localHostPort |
UtlString | mLocalIp |
OsServerSocket | ( | int | connectionQueueSize, |
int | serverPort = PORT_DEFAULT , |
||
const char * | szBindAddr = NULL , |
||
const bool | bPerformBind = true |
||
) |
|
virtual |
OsServerSocket & operator= | ( | const OsServerSocket & | rhs | ) |
param: connectionQueueSize - The maximum number of outstanding
param: serverPort - The port on which the server will listen to
|
virtual |
|
virtual |
returns: Returns a socket connected to the client requesting the returns: connection. If an error occurs returns NULL.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
int isConnectionReady | ( | ) |
|
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 in OsNatServerSocket.
|
protected |
|
protected |
|
protected |