UDP

available()

Get the number of bytes (characters) available for reading from the buffer. This is data that's already arrived.

// PROTOTYPE
virtual int available();
// SYNTAX
int count = Udp.available();

This function can only be successfully called after UDP.parsePacket().

available() inherits from the Stream utility class.

Returns the number of bytes available to read.