Scripting/Squirrel/Functions/Socket.Start: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will make the socket listen for connections on the specified port. == Syntax == <pre>Socket.Start( port, maxConn )</pre> == Arguments == * ''int'' '''port'''...")
 
No edit summary
 
Line 16: Line 16:


{{Scripting/Squirrel/Functions/Sockets}}
{{Scripting/Squirrel/Functions/Sockets}}
[[Category:Scripting/Squirrel/Functions/Sockets]]

Latest revision as of 21:56, 30 January 2017

This function will make the socket listen for connections on the specified port.

Syntax

Socket.Start( port, maxConn )

Arguments

  • int port - The port to listen on. This cannot be in use (like your server port).
  • int maxConn - The maximum amount of clients it can handle at the same time.

Example

Please refer to the Socket Example for a advanced usage of all socket functions.

Related Functions