Internet Direct (Indy) Version 9.0.1 Beta
TIdUDPBase.Broadcast
Send data to all computers on the network.

procedure Broadcast(const AData: string; const APort: integer);
Parameters
const AData: string
Values to send in the datagram.

const APort: integer
Port number for the transmission.

Description
Broadcast is a procedure used to send the data specified in AData using the port number specified in APort. Broadcast sends the data to all computers on the network. Note: Many network routers will not forward UDP broadcasts beyond the boundaries of the local network.

Broadcast calls the Send method using the reserved network address '255.255.255.255' as the destination. Broadcast also maintains BroadcastEnabled to indicate the current transaction state.