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…') |
m (Fixed a redirect issue) |
||
Line 28: | Line 28: | ||
=== Notes === | === Notes === | ||
− | The functions [[Squirrel/Server/Functions/Misc/print|print]], [[Squirrel/Server/Functions/Server/GetServerName|GetServerName]], [[Squirrel/Server/Functions/Server/GetGamemodeName|GetGamemodeName]], [[Squirrel/Server/Functions/Server/GetMapName|GetMapName]] and call [[Squirrel/Server/Events/ | + | The functions [[Squirrel/Server/Functions/Misc/print|print]], [[Squirrel/Server/Functions/Server/GetServerName|GetServerName]], [[Squirrel/Server/Functions/Server/GetGamemodeName|GetGamemodeName]], [[Squirrel/Server/Functions/Server/GetMapName|GetMapName]] and call [[Squirrel/Server/Events/Misc/onServerStart|onServerStart]] were used in this example. More info about them can be found in corresponding pages. |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Server}} | {{Squirrel/Server/Functions/Server}} |
Latest revision as of 02:51, 17 January 2012
This returns the used MTU (maximum transmission unit) size.
[edit] Syntax
int GetMTUSize()
[edit] Arguments
- None
[edit] 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; }
[edit] 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.