.rxpacketlen R/O Property
Function: |
For the selected socket (selection is made through sock.num), returns the length (in bytes) of the UDP datagram being extracted from the RX buffer. |
Type: |
Word |
Value Range: |
0-1536, default = 0 |
See Also: |
Details
This property is only relevant when sock.protocol = 0 — PL_SOCK_PROTOCOL_UDP. The correct way of using this property is within the on_sock_data_arrival event or in conjunction with the sock.nextpacket method.