UDP Packet fill in my IP Address
UDP Packet fill in my IP Address
- Subject: UDP Packet fill in my IP Address
- From: email@hidden (Hado Hein)
- Date: Sun, 14 Nov 2010 10:03:12 +0100
- Organization: handmade !
I have some devices on the network (the summary of the network settings
pref pane) which I find by sending them an UDP broadcast.
In the packet (struct) I'm sending I have to fill out a field named
"replyIP".
Sending works fine since the network stack broadcasts the packet on the
right interface.
But I have no idea what steps are neccassary to fill out this field in
the packet before in my code?
At the moment I'm collection the up interfaces with a loop
{ int status = getifaddrs(&myaddrs);} and simply use the last
interface found. That's not really satisfying.
thx
--
Hado Hein (KSK, DTHG), Berlin
sip +49.30.91688488
www.beleuchtungsbildner.de - Stage Lighting Directing
www.batchmaker.de - Stage Lighting Design, Control and Routing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden