how to use an already open and bound socket for gst_rstp_server

Nicolas Dufresne nicolas at ndufresne.ca
Sat May 26 14:05:37 UTC 2018


Le samedi 26 mai 2018 à 10:13 +0200, Philippe De Muyter a écrit :
> On Fri, May 25, 2018 at 06:36:31PM -0400, Nicolas Dufresne wrote:
> > Le ven. 25 mai 2018 15:27, Philippe De Muyter <phdm at macq.eu> a
> > écrit :
> > 
> > > Hi,
> > > 
> > > I would like to start a gst_rtsp_server on a already open and
> > > bound socket,
> > > known only by its file descriptor.
> > > 
> > > Any info on how to achieve that would be greatly appreciated
> > > 
> > 
> > See gst_rtsp_server_transfer_connection() for this.
> > 
> > https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-
> > server/html/GstRTSPServer.html#gst-rtsp-server-transfer-connection
> > 
> > 
> 
> I had already found that, but it does not match my needs.  My socket
> would
> only be open and bound, but without any incoming connection, just
> after
> 
> 	fd = socket(...);
> 	bind(fd, ...);

I see, then you could use a GSocketListener on the side, or implement a
method the server library. Note that listening on a server socket has
nothing RTSP specific.

> 
> Philippe
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list