Re: polling an intranet for a device type

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Mon, 02 Feb 2009 09:02:57 -0800, tony@avonwood <tanda@xxxxxxxxxx> wrote:

I've found some VB code that achieves what I want to do, but i'm unsure how
to recreate it.
The form has a UDP component, with a reomte host of 255.255.255.255
assigned, and an event to handle a UDP data arrival.

That's the broadcast address. But, it can only work if your intended recipients are waiting to receive broadcasts and know how to respond to one.

The UDP then does a network send and all devices are pciked up from the
event handler.

What event would you associate with the UDP?

I wouldn't. I would use the asynchronous API on the Socket class (e.g. BeginReceive()). Since you didn't provide any information about the sample code you found, I can't comment on what event it's using.

Until you provide more specifics about what your devices (the "intended recipients" to which I referred) are capable of doing, and what control you have over them (can you add features if necessary?), I think you've been given as much information as we know to give.

Pete
.



Relevant Pages

  • Re: polling an intranet for a device type
    ... well as other custim predefined commands). ... on port 30718. ... When sending a network broadcast the following code is used ... UdpClient UDP = new UdpClient; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Problem with ListAvailableSQLServers in vb 6
    ... UDP broadcast. ... Since this is a broadcast it normally only sees ... services should show up when no network is enabled. ... on which SQL Servers respond (Default protocol for SQL Server ...
    (microsoft.public.sqlserver.msde)
  • Re: polling an intranet for a device type
    ... IPEndPoint endpoint = new IPEndPoint ... UdpClient UDP = new UdpClient; ... That's the broadcast address. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: A way to disable reception of broadcast UDP?
    ... > accepting broadcast UDP is a security flaw unless the higher proto ... I know this doesn't address your question regarding the stack, ... or a connected network. ...
    (freebsd-net)
  • Re: Suggestion
    ... Yes database is a single point of failure, but that's not relevant in my ... But if the socket server goes down all of the clients are down - single ... Use UDP and a broadcast, have all clients monitor the same UDP ...
    (microsoft.public.dotnet.languages.csharp)