diff options
author | Bruno Santos <brunof@ua.pt> | 2008-05-21 09:56:02 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-05-21 09:56:02 +0000 |
commit | 570718c2feb3093e2c3a682b48734f4cac20a164 (patch) | |
tree | d91a2aac4f2967d3fe9246c4cf0b95e45d06ad00 /gst/udp/gstudpnetutils.h | |
parent | 94fb1d987043113b847131f86b3b096d7dbea8a1 (diff) |
gst/udp/gstudpnetutils.*: Provide a bunch of helper methods to deal with IPv4 and IPv6 transparently.
Original commit message from CVS:
Patch by: Bruno Santos <brunof at ua dot pt>
* gst/udp/gstudpnetutils.c: (gst_udp_get_addr),
(gst_udp_join_group), (gst_udp_leave_group),
(gst_udp_is_multicast):
* gst/udp/gstudpnetutils.h:
Provide a bunch of helper methods to deal with IPv4 and IPv6
transparently.
* gst/udp/gstmultiudpsink.c: (gst_multiudpsink_class_init),
(gst_multiudpsink_init), (gst_multiudpsink_set_property),
(gst_multiudpsink_get_property), (join_multicast),
(gst_multiudpsink_init_send), (gst_multiudpsink_add_internal),
(gst_multiudpsink_remove):
* gst/udp/gstmultiudpsink.h:
Add multicast TTL and loopback properties.
Use the helper methods to implement ip4 and ip6.
* gst/udp/gstudpsrc.c: (gst_udpsrc_create), (gst_udpsrc_start):
* gst/udp/gstudpsrc.h:
Use the helper methods to implement ip4 and ip6.
Fixes #515962.
Diffstat (limited to 'gst/udp/gstudpnetutils.h')
-rw-r--r-- | gst/udp/gstudpnetutils.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gst/udp/gstudpnetutils.h b/gst/udp/gstudpnetutils.h index 86c90151..d098664c 100644 --- a/gst/udp/gstudpnetutils.h +++ b/gst/udp/gstudpnetutils.h @@ -52,7 +52,6 @@ #define IOCTL_SOCKET ioctlsocket #define CLOSE_SOCKET(sock) closesocket(sock) #define setsockopt(sock,l,opt,val,len) setsockopt(sock,l,opt,(char *)(val),len) -#define inet_aton(c,addr) gst_udp_net_utils_win32_inet_aton ((c),(addr)) #define WSA_STARTUP(obj) gst_udp_net_utils_win32_wsa_startup(GST_OBJECT(obj)) #define WSA_CLEANUP(obj) WSACleanup () @@ -68,10 +67,15 @@ #ifdef G_OS_WIN32 -int gst_udp_net_utils_win32_inet_aton (const char *c, struct in_addr * addr); gboolean gst_udp_net_utils_win32_wsa_startup (GstObject * obj); #endif +int gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr); +int gst_udp_is_multicast (struct sockaddr_storage *addr); + +int gst_udp_join_group (int sockfd, gboolean loop, int ttl, struct sockaddr_storage *addr); +int gst_udp_leave_group (int sockfd, struct sockaddr_storage *addr); + #endif /* __GST_UDP_NET_UTILS_H__*/ |