diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2010-08-02 15:37:57 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2010-08-02 15:37:57 +0000 |
commit | f10ce88ffc77440145007f63242e1042b33df355 (patch) | |
tree | a3a82c4b3a7146df5bf222f4f9763d6bb3e9a545 /net | |
parent | 68557af56a0a729e4456ac1c246b06f0b17a6abc (diff) |
set_multicast_interface doesn't work in _WIN32 yet so I just post a message.
svn path=/trunk/externals/mrpeach/; revision=13736
Diffstat (limited to 'net')
-rw-r--r-- | net/udpsend.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |