<div dir="ltr">I add a public member function fro RTSPClient, so that I can create the connection outside and setup TCP socket for it;<br><br>void RTSPClient::setSocketNum(int ioSocket)<br>{<br> resetTCPSockets();<br><br>
fInputSocketNum=fOutputSocketNum=ioSocket;<br> if(ioSocket>=0){<br> envir().taskScheduler().setBackgroundHandling(fInputSocketNum, SOCKET_READABLE|SOCKET_EXCEPTION,<br> (TaskScheduler::BackgroundHandlerProc*)&incomingDataHandler, this);<br>
}<br>}<br><br><br>-- <br>by:crazyevent</div>