<DIV>my friend.</DIV>
<DIV>the code in your project</DIV>
<DIV> </DIV>
<DIV>void sendRTPOverTCP(unsigned char* packet, unsigned packetSize,<BR> int socketNum, unsigned char streamChannelId) </DIV>
<DIV> </DIV>
<DIV>if the ::send return error. you mean it is the os configuration's problem?</DIV>
<DIV><includetail>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="COLOR: #000">
<DIV style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; FONT-FAMILY: Arial Narrow">------------------ Original ------------------</DIV>
<DIV style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px">
<DIV id=menu_sender><B>From: </B> "Ross Finlayson"<finlayson@live555.com>;</DIV>
<DIV><B>Date: </B> Fri, Jul 9, 2010 05:04 PM</DIV>
<DIV><B>To: </B> "LIVE555 Streaming Media - development & use"<live-devel@ns.live555.com>; <WBR></DIV>
<DIV></DIV>
<DIV><B>Subject: </B> Re: [Live-devel] live555 rtsp server</DIV></DIV>
<DIV> </DIV>>i am using mediaServer to develop one rtsp server with realtime <BR>>video stream show.<BR>><BR>>but when i finished coding.and begun to test.<BR>><BR>>i found it hardly run well when lots of clients connect in.<BR>><BR>>i check your code and found . there is only one thread to poll the event.<BR><BR>If you had read the FAQ - as you were asked to before you subscribed <BR>to this mailing list - then you would already have known this without <BR>having to look at the code :-)<BR><BR><BR>> so how to use mutithread type run your event loop?<BR><BR>You don't. (Read the FAQ!) LIVE555 applications use a <BR>single-threaded event loop - rather than threads - for concurrency.<BR><BR>However, this is irrelevant, because I very much doubt that the <BR>performance problems with your server are due to it being CPU-bound. <BR>Instead, it's more likely that your problem is either (i) your <BR>available network bandwidth, or (ii) OS-imposed limits on the number <BR>of open sockets (if so, you can probably increase these limits by <BR>reconfiguring your OS).<BR>-- <BR><BR>Ross Finlayson<BR>Live Networks, Inc.<BR>http://www.live555.com/<BR>_______________________________________________<BR>live-devel mailing list<BR>live-devel@lists.live555.com<BR>http://lists.live555.com/mailman/listinfo/live-devel<BR></DIV></includetail></DIV>