Schmidt
3/28/2012 1:40:00 AM
Am 28.03.2012 02:14, schrieb Henning:
> "Karl E. Peterson"<karl@exmvps.org> skrev i meddelandet
> news:jkthfj$8f6$1@dont-email.me...
>> After serious thinking DanS wrote :
>>> Sorry I bothered the group.
>>
>> Nothing clarifies the mind like asking publicly how to do something. It
>> forces you to think it through enough to formulate the question, which is
>> often all it takes.<g>
>
>
> Been there, done that... ;)
> By the way, CSocketMaster is a really good replacement for Winsock.
Although from what I've read regarding at the website
Dan has linked, this seems simple enough to do even
with "normal Winsock.ocx".
Looks like broadcasting a "zero-long" (or 4 empty bytes in
a ByteArray) on the broadcast-IP - which is usually in
the form of ---.---.---.255 using the normal send-command
on the windock-control (in UDP-mode) would be enough
to trigger a response from the devices - which then
comes in over the normal Event... and all the offets
in the incoming bytes-arrays are already described on
the linked page - seems like one could even copy
the Bytes (if the incoming datagram is large enough)
directly over into a properly designed UDT, in one go.
Olaf