[gstreamer-bugs] [Bug 314624] [PATCH] Provide a way to use unix sockets beside simple tcp sockets

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Aug 12 05:06:39 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=314624

  GStreamer | gst-plugins-base | Ver: git




------- Comment #16 from Jarkko Palviainen  2009-08-12 12:06 UTC -------
Created an attachment (id=140548)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=140548&action=view)
Patch proposal for adding Unix domain socket support

I've written separate unix{server,client}{sink,src} elements in
gst-plugins-base/gst in the Git repo. The draft patch should be attached with
this post. To apply it, I do simply:
$ cd gst-plugins-base
$ git apply gst-unixsockets.patch

I used the similar tcp* element code as a template. Here is some notes what has
been essentially changed and what's kept:
- unixserversink does not inherit multifdsink, but will only send to one client
  - multifdsink depends too much on TCP-specific code
  - if multifdsink is needed, fallback to gsttcpserversink?
- examples use 'socat' tool as the other end point for the connection
- supports raw data transfer and GDP protocol (type of SOCK_STREAM)

I'm not entirely sure if the elements are handling broken pipes and closed
connections correctly, but the behavior is somewhat similar to the tcp
counterparts (shutting down pipeline via error checking).

Comments are appreciated and I can make further changes if necessary. 


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=314624.




More information about the Gstreamer-bugs mailing list