aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2010-08-02 15:37:57 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2010-08-02 15:37:57 +0000
commitf10ce88ffc77440145007f63242e1042b33df355 (patch)
treea3a82c4b3a7146df5bf222f4f9763d6bb3e9a545
parent68557af56a0a729e4456ac1c246b06f0b17a6abc (diff)
set_multicast_interface doesn't work in _WIN32 yet so I just post a message.
svn path=/trunk/externals/mrpeach/; revision=13736
-rw-r--r--net/udpsend.c4
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)