|
일반 전송과 다를게 없다고 생각합니다. :)
idUDPServer->BroadcastEnabled = true;
idUDPServer->SendBuffer(BROADCAST_IP_ADRESS, 포트, 데이터, 사이즈);
이런식으로 해주면 되고, 유의하실점은 Broadcasting 시킬 주소만 확실히
구해내시면 됩니다.
cuperido
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Easy,
Send your message using TIdUDPClient...
As the host, use your 'broadcast' address :)
Eg:
IP = 192.168.1.1
NETMASK = 255.255.255.0
In this case your 'network' would be 192.168.1.0,
and the broadcast address would be 192.168.1.255
That's where you send the message :)
Have some TIdUDPServer wait for your message :)
Cheers,
Rory
앙마 님이 쓰신 글 :
: 예제가 안보이는거 같아서염..간단한 예제라도.. 좀 부탁드립니다..
|