rtspstack
Class RtspTcpConnection


class RtspTcpConnection

RtspTcpConnection Accepts a new TCP connection as a new RtspTcpBuffer object Addes it to the connection map and select() processing TCP traffic


Constructor Summary
RtspTcpConnection(Fifo< Sptr > & sharedRecvFifo, int listenPort)
          constructor

Destructor Summary
 virtual ~RtspTcpConnection()
          deconstructor

Method Summary
 voidcloseTcpConnection()
          stops recvThread and closes server tcp conneciton
 void *recvTcpThread()
          accept new tcp connections and processes them
 static void *recvTcpThreadWrapper(void * p)
          recvTcpThread wrapper
 static voidsigAbrt(int signo)
          signal handler for SIGABRT
 static voidsigChld(int signo)
          signal handler for SIGCHLD cleanup the child
 static voidsigTerm(int signo)
          signal handler for SIGTERM

Constructor Detail

RtspTcpConnection

public RtspTcpConnection(Fifo< Sptr > & sharedRecvFifo, int listenPort)
constructor
Parameters:
recvFifo - fifo to insert new RTSP messages
listenPort - port to accept new connections
Method Detail

~RtspTcpConnection

public virtual ~RtspTcpConnection()
deconstructor
Method Detail

closeTcpConnection

public void closeTcpConnection()
stops recvThread and closes server tcp conneciton

recvTcpThread

public void * recvTcpThread()
accept new tcp connections and processes them

recvTcpThreadWrapper

public static void * recvTcpThreadWrapper(void * p)
recvTcpThread wrapper

sigAbrt

public static void sigAbrt(int signo)
signal handler for SIGABRT

sigChld

public static void sigChld(int signo)
signal handler for SIGCHLD cleanup the child

sigTerm

public static void sigTerm(int signo)
signal handler for SIGTERM