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 |
Method Summary |
void | closeTcpConnection() stops recvThread and closes server tcp conneciton |
void * | recvTcpThread() accept new tcp connections and processes them |
static void * | recvTcpThreadWrapper(void * p) recvTcpThread wrapper |
static void | sigAbrt(int signo) signal handler for SIGABRT |
static void | sigChld(int signo) signal handler for SIGCHLD cleanup the child |
static void | sigTerm(int signo) signal handler for SIGTERM |
RtspTcpConnection
public RtspTcpConnection(Fifo< Sptr > & sharedRecvFifo, int listenPort)
- constructor
- Parameters:
- recvFifo - fifo to insert new RTSP messages
- listenPort - port to accept new connections
~RtspTcpConnection
public virtual ~RtspTcpConnection()
- deconstructor
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