Squirrel/Server/Functions/Server/GetMTUSize
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|GetMTUSize}} This returns the used MTU ([http://en.wikipedia.org/wiki/Maximum_transmission_unit maximum transmission unit]) size. == Syntax == <code>int GetMTU…') |
Revision as of 23:06, 9 June 2011
This returns the used MTU (maximum transmission unit) size.
Syntax
int GetMTUSize()
Arguments
- None
Example
This example will print some info about the server to the console when the server is started.
function onServerStart() { print( "Server name: " + GetServerName() ); print( "Gamemode: " + GetGamemodeName() ); print( "Map: " + GetMapName() ); print( "MTU size: " + GetMTUSize() ); return 1; }
Notes
The functions print, GetServerName, GetGamemodeName, GetMapName and call onServerStart were used in this example. More info about them can be found in corresponding pages.