UDP Server Receive Size

Block to obtain the number of bytes currently stored in the UDP server's receive buffer.

Description

Each time the UDP server receives a new data packet, it stores the data in its internal receive buffer. Note that the previously received data packet is overwritten. This block reads the size in bytes of the most recently received data packet. To access the data, the block 'UDP Server Receive' can be used.

Remarks

Output

Number of bytes of the most recently received data packet that is currently stored in the UDP server's receive buffer.
The used datatype is of uint16.

Parameters
Sample time
Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model.