Method _Stdio.UDP()->query_mtu()


Method query_mtu

int query_mtu()

Description

Get the Max Transfer Unit for the object (if any).

Returns
-1

Returns -1 if the object is not a socket or if the mtu is unknown.

(1..)

Returns a positive value with the mtu on success.

Note

The returned value is adjusted to take account for the IP and UDP headers, so that it should be usable without further adjustment unless further IP options are in use.