Sock.Bcast R/O Property |
Top Previous Next |
Function: |
For the currently selected socket (selection is made through sock.num) reports whether the current or most recently received UDP datagram was a broadcast one. |
Type: |
Enum (no_yes, byte) |
Value Range: |
0- NO (default): the UDP datagram is not a broadcast one. 1- YES: the UDP datagram is a broadcast one. |
See Also: |
Details
When the on_sock_data_arrival event handler is entered, the sock.bcast will contain the broadcast status for the current datagram being processed. Outside of the on_sock_data_arrival event handler, the property will return the broadcast status of the most recent datagram received by the socket.