Re: polling an intranet for a device type
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Mon, 02 Feb 2009 11:16:17 -0800
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
.
- Follow-Ups:
- Re: polling an intranet for a device type
- From: tony@avonwood
- Re: polling an intranet for a device type
- From: tony@avonwood
- Re: polling an intranet for a device type
- References:
- Re: polling an intranet for a device type
- From: Ken Foskey
- Re: polling an intranet for a device type
- From: Peter Duniho
- Re: polling an intranet for a device type
- From: tony@avonwood
- Re: polling an intranet for a device type
- From: tony@avonwood
- Re: polling an intranet for a device type
- Prev by Date: Re: Backgroundworker
- Next by Date: inserting instances of subclass into a generic List
- Previous by thread: Re: polling an intranet for a device type
- Next by thread: Re: polling an intranet for a device type
- Index(es):
Relevant Pages
|