Sock.Remotemac R/O Property

Top  Previous  Next

 

Function:

For the currently selected socket (selection is made through sock.num) returns the MAC address of the host with which this socket had the most recent or currently has a connection.

Type:

String

Value Range:

Default= "0.0.0.0.0.0"

See Also:

sock.remoteip, sock.remoteport, sock.bcast

 


Details

For UDP connections, when the on_sock_data_arrival event handler is entered, the sock.remotemac will contain the MAC address of the sender of the current UDP datagram being processed. Outside of the on_sock_data_arrival event handler, the property will return the source MAC address of the most recent datagram received by the socket.