UdpSrc?
killerrats
koreysjunkmail at gmail.com
Tue Oct 15 16:58:36 UTC 2019
I tried this but didn't seemed to work at all either. seemed to say
SOCKET fd = getSocket(ipaddress, interfaceIp, portNumber); socketUDP =
g_socket_new_from_fd(fd, &err);SOCKET getSocket(const char* ipaddress,const
char* interfaceIp,const int portNumber) { struct sockaddr_in addr; struct
sockaddr_in* pAddr; struct sockaddr_in* a; struct sockaddr_in aa; struct
group_req mreq; a = &aa; pAddr = &addr; int fd = socket(AF_INET,
SOCK_DGRAM, 0); memset(&addr, 0, sizeof(addr)); memset(&aa, 0,
sizeof(aa)); addr.sin_family = AF_INET; addr.sin_addr.s_addr =
InetPtonW(AF_INET, L"232.232.232.0", &pAddr->sin_addr); addr.sin_port =
ntohs(portNumber); bind(fd, (const struct sockaddr *) &addr, sizeof(addr))
== 0; mreq.gr_interface = InetPtonW(AF_INET, L"10.16.14.210",
&a->sin_addr); memset(&mreq.gr_group, 0, sizeof(mreq.gr_group)); a =
(struct sockaddr_in *) &mreq.gr_group; a->sin_family = AF_INET;
a->sin_port = portNumber; setsockopt(fd, IPPROTO_IP, MCAST_JOIN_GROUP,
(const char*)&mreq, sizeof(mreq)) == 0; return fd; }
-----
------------------------------
Gstreamer 1.14.3
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191015/a465498c/attachment.html>
More information about the gstreamer-devel
mailing list