GetMTUSize

From Liberty Unleashed Wiki
Revision as of 02:51, 17 January 2012 by SugarD (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This returns the used MTU (maximum transmission unit) size.

Syntax

  1. int GetMTUSize()

Arguments

  • None

Example

This example will print some info about the server to the console when the server is started.

  1.  
  2. function onServerStart()
  3. {
  4. print( "Server name: " + GetServerName() );
  5. print( "Gamemode: " + GetGamemodeName() );
  6. print( "Map: " + GetMapName() );
  7. print( "MTU size: " + GetMTUSize() );
  8. return 1;
  9. }
  10.  

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.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox