Method _Stdio.UDP()->query_mtu()
- Method
query_mtu
intquery_mtu()- Description
Get the Max Transfer Unit for the object (if any).
- Returns
-1Returns
-1if 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.