delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/25/16:11:05

From: andrew AT calvin DOT dgbt DOT doc DOT ca ("Andrew Patrick")
Subject: using multicast socket options
25 Apr 1997 16:11:05 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <9704251916.AA24283.cygnus.gnu-win32@calvin.dgbt.doc.ca>
Mime-Version: 1.0
Comments: Authenticated sender is <andrew AT calvin DOT dgbt DOT doc DOT ca>
Original-To: gnu-win32 AT cygnus DOT com
X-Mailer: Pegasus Mail for Win32 (v2.53/R1)
Original-Sender: owner-gnu-win32 AT cygnus DOT com

I am trying to port a UNIX multicast application to Win32 and the 
GNU-Win32 development tools are of interest to me because of the 
familiar environment they provide.

I have run into a problem with the setsockopt() call.  Here is the 
code fragment I am using.

if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, 
     (char *)&mreq, sizeof(mreq)) < 0)   
  {
  perror("IP_ADD_MEMBERSHIP");
  exit(1);
  }

The problem is that this code compiles fine but produces a run-time 
error of "This option is unsupported".  Not being familiar with the 
GNU compile tools, and the Win32 environment in general, I don't know 
where this message is coming from.  Is this a limitation of the 
GNU-Win32 libraries?  Is there something I can do to get multicast 
support in my GNU-Win32 programs?

Thanks


---
Andrew Patrick <Andrew DOT Patrick AT crc DOT doc DOT ca>
Communications Research Centre   http://debra.dgbt.doc.ca/~andrew/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019