[Live-devel] DeviceSource.cpp socket implementation

Ross Finlayson finlayson at live555.com
Wed Apr 25 07:44:45 PDT 2012


> I’m wondering if anybody has a simple socket reading version of the testOnDemandRTSPServer program.

What you really mean to ask for is "a subclass of the 'OnDemandServerMediaSubsession' class that reads from a socket".  There is such a class that you can use as a model: "MPEG2TransportUDPServerMediaSubsession".  Note also how this is used in "testOnDemandRTSPServer".

If, however, you are asking about reading from a *stream* (i.e., TCP) socket, rather than from a datagram socket, then you should be able to convert the socket into a "FILE*" (assuming that you're not using Windoze), and instead use "WAVAudioFileServerMediaSubsession" as a model for your new "OnDemandServerMediaSubsession" subclass.

(Either way, you will need to write your own "OnDemandServerMediaSubsession" subclass.)


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120425/d2f91ff7/attachment.html>


More information about the live-devel mailing list