rtspstack
Class RtspTransceiver
- class RtspTransceiver
RtspTransceiver
Accepts new TCP connections on listenPort.
For each new connection a new RtspTcpBuffer object is added to
myTcpConnection map. All connections are processed by a select ()
loop. RTSP messages are received from connection and inserted into
a shared recvFifo for RtspServer to process
Constructor Summary |
RtspTransceiver(Fifo< Sptr > & recvFifo, int listenPort) constructor |
Method Summary |
static int | readData(Connection conn, void * dataRead, size_t nchar, int & bRead) reads nchar from a given sockets, bRead returns the bytes read |
void | send(Sptr msg) sends an rtsp request msg |
void | send(Sptr msg) sends an rtsp response msg |
static void | writeData(Connection conn, void * data, size_t len) writes nchar to socket |
RtspTransceiver
public RtspTransceiver(Fifo< Sptr > & recvFifo, int listenPort)
- constructor
- Parameters:
- recvFifo - fifo to insert new RTSP messages
- listenPort - port to accept new connections
~RtspTransceiver
public virtual ~RtspTransceiver()
- deconstructor
readData
public static int readData(Connection conn, void * dataRead, size_t nchar, int & bRead)
throws VNetworkException
- reads nchar from a given sockets, bRead returns the bytes read
send
public void send(Sptr msg)
throws VNetworkException
- sends an rtsp request msg
send
public void send(Sptr msg)
throws VNetworkException
- sends an rtsp response msg
writeData
public static void writeData(Connection conn, void * data, size_t len)
throws VNetworkException
- writes nchar to socket
to Class RtspTcpConnection- TCP Interface