sipxtacklib
Version 3.3
|
#include <SipProtocolServerBase.h>
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 | |
SipClient * | createClient (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 |
SipUserAgent * | mSipUserAgent |
UtlHashMap | mServerSocketMap |
UtlHashMap | mServerPortMap |
UtlHashMap | mServers |
SipServerBrokerListener * | mpServerBrokerListener |
Friends | |
class | SipServerBrokerListener |
SipProtocolServerBase | ( | SipUserAgent * | userAgent, |
const char * | protocolString, | ||
const char * | taskName | ||
) |
|
virtual |
|
virtual |
Reimplemented in SipTcpServer.
|
pure virtual |
Implemented in SipTcpServer, and SipUdpServer.
UtlBoolean send | ( | SipMessage * | message, |
const char * | hostAddress, | ||
int | hostPort = SIP_PORT |
||
) |
|
pure virtual |
Implemented in SipTcpServer, and SipUdpServer.
void removeOldClients | ( | long | oldTime | ) |
int getClientCount | ( | ) |
|
virtual |
Reimplemented in SipUdpServer.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedpure virtual |
Implemented in SipUdpServer, and SipTcpServer.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |