.bcast R/O Property

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:

sock.remotemac, sock.remoteip, sock.remoteport


Details

When the on_sock_data_arrival event handler is entered, 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.


.bcast R/O Property

Details