From f10ce88ffc77440145007f63242e1042b33df355 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Mon, 2 Aug 2010 15:37:57 +0000 Subject: set_multicast_interface doesn't work in _WIN32 yet so I just post a message. svn path=/trunk/externals/mrpeach/; revision=13736 --- net/udpsend.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/udpsend.c b/net/udpsend.c index a281e23..e4117c2 100644 --- a/net/udpsend.c +++ b/net/udpsend.c @@ -110,6 +110,9 @@ Enable sending of broadcast messages (if hostname is a broadcast address)*/ static void udpsend_set_multicast_interface (t_udpsend *x, t_symbol *s, int argc, t_atom *argv) { +#ifdef _WIN32 + post ("udpsend: set multicast interface not implementeed yet"); +#else struct sockaddr_in server; struct sockaddr *sa; struct hostent *hp = 0; @@ -183,6 +186,7 @@ static void udpsend_set_multicast_interface (t_udpsend *x, t_symbol *s, int argc if (setsockopt(x->x_fd, IPPROTO_IP, IP_MULTICAST_IF, &server.sin_addr, sizeof(struct in_addr)) < 0) sys_sockerror("udpsend_set_multicast_interface: setsockopt"); else post("udpsend multicast interface is %s", inet_ntoa(server.sin_addr)); +#endif // _WIN32 } static void udpsend_disconnect(t_udpsend *x) -- cgit v1.2.1