sipxtacklib  Version 3.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SipTcpServer Class Reference

#include <SipTcpServer.h>

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

Public Member Functions

 SipTcpServer (int sipPort=SIP_PORT, SipUserAgent *userAgent=NULL, const char *protocolString=SIP_TRANSPORT_TCP, const char *taskName="SipTcpServer-%d", UtlBoolean bUseNextAvailablePort=FALSE, const char *szBindAddr=NULL)
 
virtual ~SipTcpServer ()
 
virtual UtlBoolean startListener ()
 
void shutdownListener ()
 
int run (void *pArg)
 
int getServerPort () const
 
- Public Member Functions inherited from SipProtocolServerBase
 SipProtocolServerBase (SipUserAgent *userAgent, const char *protocolString, const char *taskName)
 
virtual ~SipProtocolServerBase ()
 
UtlBoolean send (SipMessage *message, const char *hostAddress, int hostPort=SIP_PORT)
 
void removeOldClients (long oldTime)
 
int getClientCount ()
 
virtual void printStatus ()
 
virtual UtlBoolean isOk ()
 

Protected Member Functions

OsStatus createServerSocket (const char *szBindAddr, int &port, const UtlBoolean &bUseNextAvailablePort)
 
virtual OsSocket * buildClientSocket (int hostPort, const char *hostAddress, const char *localIp)
 
- Protected Member Functions inherited from SipProtocolServerBase
SipClientcreateClient (const char *hostAddress, int hostPort, const char *localIp)
 
void releaseClient (SipClient *client)
 
void startClients ()
 
void shutdownClients ()
 
UtlBoolean clientExists (SipClient *client)
 
void addClient (SipClient *client)
 

Protected Attributes

int mServerPort
 
UtlHashMap mServerBrokers
 
- Protected Attributes inherited from SipProtocolServerBase
UtlString mProtocolString
 
UtlString mDefaultIp
 
int mDefaultPort
 
SipUserAgentmSipUserAgent
 
UtlHashMap mServerSocketMap
 
UtlHashMap mServerPortMap
 
UtlHashMap mServers
 
SipServerBrokerListenermpServerBrokerListener
 

Constructor & Destructor Documentation

SipTcpServer ( int  sipPort = SIP_PORT,
SipUserAgent userAgent = NULL,
const char *  protocolString = SIP_TRANSPORT_TCP,
const char *  taskName = "SipTcpServer-%d",
UtlBoolean  bUseNextAvailablePort = FALSE,
const char *  szBindAddr = NULL 
)
~SipTcpServer ( )
virtual

Member Function Documentation

UtlBoolean startListener ( )
virtual

Reimplemented from SipProtocolServerBase.

void shutdownListener ( )
virtual

Implements SipProtocolServerBase.

int run ( void *  pArg)
virtual

Implements SipProtocolServerBase.

int getServerPort ( ) const
OsStatus createServerSocket ( const char *  szBindAddr,
int &  port,
const UtlBoolean &  bUseNextAvailablePort 
)
protected
OsSocket * buildClientSocket ( int  hostPort,
const char *  hostAddress,
const char *  localIp 
)
protectedvirtual

Implements SipProtocolServerBase.

Member Data Documentation

int mServerPort
protected
UtlHashMap mServerBrokers
protected

sipXtackLib home page