|
From: GStreamer (bugzilla.gnome.org) <bug...@bu...> - 2008-05-23 08:17:40
|
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=534243 GStreamer | gst-plugins-good | Ver: HEAD CVS ------- Comment #5 from Bruno Santos 2008-05-23 08:17 UTC ------- I have thought in a 3rd solution, use a socket object, something like: struct gst_udp_socket { int sock4; int sock6; }; int gst_udp_socket(struct gst_udp_socket* sobj, int family, int protocol) { sobj->sock4 = socket (AF_INET, protocol, 0); sobj->sock6 = socket (AF_INET6, protocol, 0); ... } ssize_t gst_udp_sendto(struct gst_udp_socket *sobj, const void* buffer, size_t length, int flags, const struct socketaddr_storage *dst) { switch (dst->ss_family) ... } ... Thoughts? -- 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=534243. |