rtspserver
Class RtspServer


class RtspServer

Process the message from the RtspMsgInterface in a seperate thread.


Field Summary
 RtspServerStatsmyStats
          server statistics
 VMutexmyStatsMutex
          lock around server statistics

Destructor Summary
 virtual ~RtspServer()
          destructor

Method Summary
 static voiddestroy(void )
          frees the memory associated with singelton instance
 static RtspServer &instance(const int port)
          Create a singelton object.
 voidnetworkAddress(const NetworkAddress & addr)
          set server network address
 const NetworkAddress &networkAddress()
          get server network address
 voidrun()
          Process the rtsp messages forever
 voidsendResponse(Sptr response)
          sends rtsp response - interface between RtspMsgInterface and StateMachine
 voidstop(const int delay)
          Stops rtspServer thread.

Field Detail

myStats

public RtspServerStats myStats
server statistics

myStatsMutex

public VMutex myStatsMutex
lock around server statistics
Method Detail

~RtspServer

public virtual ~RtspServer()
destructor
Method Detail

destroy

public static void destroy(void )
frees the memory associated with singelton instance

instance

public static RtspServer & instance(const int port)
Create a singelton object. Creates the state machine; read the configuration file, build the rtp processor, and starts all the threads

networkAddress

public void networkAddress(const NetworkAddress & addr)
set server network address

networkAddress

public const NetworkAddress & networkAddress()
get server network address

run

public void run()
Process the rtsp messages forever

sendResponse

public void sendResponse(Sptr response)
sends rtsp response - interface between RtspMsgInterface and StateMachine

stop

public void stop(const int delay)
Stops rtspServer thread. Teardowns all the active rtsp sessions
Parameters:
delay - delay time until shutdown (not implemented yet)

Association Links

to Class RtspServerStats

server statistics

to Class RtspServer

singelton object

to Class RtspMsgInterface

interface into rtsp messages