Re: vb6.0 udp multicast problem



On Oct 7, 9:34 pm, "Jim Mack" <jm...@xxxxxxxxxxxxxxx> wrote:
emp1953 wrote:
I have a UNIX machine broadcasting and receiving messages viaUDP
multicast.

I have configured a vb6.0 app with a winsock control configured
haphazardly.  I say haphazardly because there are no winsockudp
multicastexamples in any Microsoft documentation or any where else
for that matter.

I can send messages to the Unix machine, it receives them and parses
them perfectly.  Messages coming back are not received by the vb6.0
app.

Can you show the code you use to configure the winsock control, and
any static setup of the properties? I use winsock withUDPfor
broadcast in a mixed Windows / Irix environment. As far as I know, you
should be able to do this using broadcast to amulticastIP range
(assuming you're on the same network segment).

What does netstat -nr show for themulticastrange? (224.xxx etc). IOW
are you sure there's a route frommulticastto your host, on the
Windows side?

Also, depending on the age of the OS and the stack, you may need to
call setsockopt() to allow broadcast overUDP. Anything newer than
Win2K SP1 should be OK.

--
        Jim

Jim, Keep in mind that the UNIX box is broadcasting multicast and
other LINUX and UNIX machines on the LAN are reading it fine.
Oh, it is a closed local network, 4 machines running through an
ethernet switch, my PC will make it 5. Where is the setsocketopt()
call? on the UNIX side? That seems to work fine already with the non-
windows machines.

Here's the code - not much to it:


udpRemoteHost = "224.0.10.101"
udpRemotePort = 6301
Me.udpServer.Bind 6300
Me.udpServer.RemoteHost = udpRemoteHost
Me.udpServer.RemotePort = 6301

I did the netstat -nr on the PC. what am I looking for. I couldn't
copy and past the results here. I took a .bmp of it but can't post
that here either.
I could email it to you.

Thanks, Ed


.



Relevant Pages

  • Wireless LAN unter Gentoo Linux auf Acer Aspire 3022
    ... UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... eth1 Link encap:UNSPEC HWaddr ... Date format: Timestamp ...
    (de.comp.os.unix.linux.hardware)
  • Re: Multicast MAC and Unicast IP Address
    ... I am interested in knowing what the rules are because up to now everybody just told me that it is a strange way to use multicast but some also said that it is illegal. ... When a host sends a datagram to a link-layer broadcast address, the IP destination address MUST be a legal IP broadcast or IP multicast address. ... I believe that the use of a multicast MAC address to send a unicast IP packet to a group of devices (e.g., a cluster) is a perfectly correct use of link-layer multicast, assuming that the cluster software knows how to deal with the fact that multiple devices are receiving the same IP datagram. ...
    (comp.dcom.lans.ethernet)
  • Re: [Full-Disclosure] Windows SP2 firewall: Famous for 3 seconds?
    ... > | Multicast and broadcast network traffic differ from unicast traffic ... > | number of scenarios from working, ... This has much bigger significance for IPv6 where ARP messages have been ...
    (Full-Disclosure)
  • Re: When does Linux drop UDP packets?
    ... On Fri, 5 Jun 2009, Alexander Clouter wrote: ... It's dead easy to transmit and receive multicast traffic, ... By using broadcast traffic the load (okay, ... discovering that multicast can be used for device discovery rather than ...
    (Linux-Kernel)
  • Re: is there a way for a client to detect a server on the network
    ... >> broadcast over the network to discover availlable servers and the ... >> user could then select the server he prefers. ... > .NET remoting does not provide service discovery nor service dictionary, so> you need to do it yourself. ... >> network however this would take hours as it is far to slow> Ever heard about IP broadcast or multicast? ...
    (microsoft.public.dotnet.framework.remoting)

Loading