[Gambas-user] Sending Udp broadcast?
Ron
ron at ...1740...
Wed Nov 12 21:24:55 CET 2008
Hi,
Need some help in how to send a broadcast udp message.
Like a wake on lan Magic Packet.
I know how to create the message, but how do you sent a broadcast
message with udpclient?
Came up with this, but it results in a system error.
hWOL = NEW UdpSocket AS "WOLSocket"
hWOL.Broadcast = TRUE
hWOL.Bind(0)
IF hWOL.Status = Net.Active THEN
PRINT "Active!"
WRITE #hWOL, sMsg, Len(sMsg)
ELSE
PRINT "NotActive!"
END IF
Thanks.
Regards,
Ron_2nd.
More information about the User
mailing list