[Live-devel] RTSP server to handle receiving data from other Sockets and the RTSP clients

Victor Lee victor_l2000 at hotmail.com
Fri Nov 17 23:00:01 PST 2006


Hi Ross,

Thank you very much for your suggestion. I am not clear with the 2nd part of 
your suggestion.
Could you please tell me a little bit more about this? What is "the name of 
the socket in the file system"?

I am implementing the application in windows environment.
The socket servers are running on one computer, each socket sending a stream 
in a loop using:
      bytesSent = send(serverSocket, sendBuf, DataBlockSize, 0);
For each socket server, i need a corresponding socket client to receive the 
stream data, also in a loop using:
      bytesRecved  = recv(ClientSocket, recvBuf, DataBlockSize, 0);
How can i pass the data received in recvBuf to RTSP server? Should the part 
implementing the Socket Client to receive the data in 
testOnDemandRTSPServer? I have no idea on how to deal with the loop to 
receive the Socket data and the doEventLoop() in testOnDemandRTSPServer in 
one process.

I tried to modify ByteStreamFileSource, and then pass the data in recvBuf to 
fTo, but there are problems: cannot support multiple RTSP Clients, and data 
received cannot be controled as reading from file (where fMaxSize is changed 
each time reading from the file).

I appreciate your help! Many thanks!

Vic

>From: Ross Finlayson <finlayson at live555.com>
>Reply-To: LIVE555 Streaming Media - development & 
>use<live-devel at ns.live555.com>
>To: LIVE555 Streaming Media - development & use 
>	<live-devel at ns.live555.com>
>Subject: Re: [Live-devel] RTSP server to handle receiving data from other 
>Sockets and the RTSP clients
>Date: Fri, 17 Nov 2006 15:00:30 -0800
>
> >Now my problem is: how can i accept the data continuously and pass it to
> >multiple RTSP clients (when more than one RTSP clients are requesting 
>same
> >data source).
>
>Set the "reuseFirstSource" Boolean parameter to True.  It was
>designed for exactly this purpose.
>
> >how can my data receiving part be handled?
> >
> >For my case, i need to continuously receive the socket data.
>
>Because a 'socket' is just an open file (on sensible operating
>systems, at least), you can read it using the "ByteStreamFileSource".
>I.e., using the "testOnDemandRTSPServer" code as an example, just
>change the file name from "test.<whatever>" to the name of your
>socket in the file system (or "stdin" if you're reading from standard
>input).
>--
>
>Ross Finlayson
>Live Networks, Inc.
>http://www.live555.com/
>_______________________________________________
>live-devel mailing list
>live-devel at lists.live555.com
>http://lists.live555.com/mailman/listinfo/live-devel

_________________________________________________________________
Talk now to your Hotmail contacts with Windows Live Messenger. 
http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview



More information about the live-devel mailing list