sipxtacklib  Version 3.3
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
SipProtocolServerBase Class Referenceabstract

#include <SipProtocolServerBase.h>

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

Public Member Functions

 SipProtocolServerBase (SipUserAgent *userAgent, const char *protocolString, const char *taskName)
 
virtual ~SipProtocolServerBase ()
 
virtual UtlBoolean startListener ()
 
virtual void shutdownListener ()=0
 
UtlBoolean send (SipMessage *message, const char *hostAddress, int hostPort=SIP_PORT)
 
virtual int run (void *pArg)=0
 
void removeOldClients (long oldTime)
 
int getClientCount ()
 
virtual void printStatus ()
 
virtual UtlBoolean isOk ()
 

Protected Member Functions

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)
 
virtual OsSocket * buildClientSocket (int hostPort, const char *hostAddress, const char *localIp)=0
 

Protected Attributes

UtlString mProtocolString
 
UtlString mDefaultIp
 
int mDefaultPort
 
SipUserAgentmSipUserAgent
 
UtlHashMap mServerSocketMap
 
UtlHashMap mServerPortMap
 
UtlHashMap mServers
 
SipServerBrokerListenermpServerBrokerListener
 

Friends

class SipServerBrokerListener
 

Constructor & Destructor Documentation

SipProtocolServerBase ( SipUserAgent userAgent,
const char *  protocolString,
const char *  taskName 
)
~SipProtocolServerBase ( )
virtual

Member Function Documentation

UtlBoolean startListener ( )
virtual

Reimplemented in SipTcpServer.

virtual void shutdownListener ( )
pure virtual

Implemented in SipTcpServer, and SipUdpServer.

UtlBoolean send ( SipMessage message,
const char *  hostAddress,
int  hostPort = SIP_PORT 
)
virtual int run ( void *  pArg)
pure virtual

Implemented in SipTcpServer, and SipUdpServer.

void removeOldClients ( long  oldTime)
int getClientCount ( )
void printStatus ( )
virtual

Reimplemented in SipUdpServer.

UtlBoolean isOk ( )
virtual
SipClient * createClient ( const char *  hostAddress,
int  hostPort,
const char *  localIp 
)
protected
void releaseClient ( SipClient client)
protected
void startClients ( )
protected
void shutdownClients ( )
protected
UtlBoolean clientExists ( SipClient client)
protected
void addClient ( SipClient client)
protected
virtual OsSocket* buildClientSocket ( int  hostPort,
const char *  hostAddress,
const char *  localIp 
)
protectedpure virtual

Implemented in SipUdpServer, and SipTcpServer.

Friends And Related Function Documentation

friend class SipServerBrokerListener
friend

Member Data Documentation

UtlString mProtocolString
protected
UtlString mDefaultIp
protected
int mDefaultPort
protected
SipUserAgent* mSipUserAgent
protected
UtlHashMap mServerSocketMap
protected
UtlHashMap mServerPortMap
protected
UtlHashMap mServers
protected
SipServerBrokerListener* mpServerBrokerListener
protected

sipXtackLib home page