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

Destructor Summary
 virtual ~RtspTransceiver()
          deconstructor

Method Summary
 static intreadData(Connection conn, void * dataRead, size_t nchar, int & bRead)
          reads nchar from a given sockets, bRead returns the bytes read
 voidsend(Sptr msg)
          sends an rtsp request msg
 voidsend(Sptr msg)
          sends an rtsp response msg
 static voidwriteData(Connection conn, void * data, size_t len)
          writes nchar to socket

Constructor Detail

RtspTransceiver

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

~RtspTransceiver

public virtual ~RtspTransceiver()
deconstructor
Method Detail

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

Association Links

to Class RtspTcpConnection

TCP Interface