Scripting/Squirrel/Functions/Socket.SetNewConnFunc: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "Specify the function to call when the socket has received a new connection. == Syntax == <pre>Socket.SetNewConnFunc( function )</pre> == Arguments == * ''string'' '''funct...") |
No edit summary |
||
Line 11: | Line 11: | ||
== Notes == | == Notes == | ||
As a client, this function has no arguments. | As a client, this function has no arguments. | ||
As a server, | |||
As a server: | |||
<pre>function newConn( clientID, clientIP, clientPort )</pre> | |||
== Example == | == Example == |
Revision as of 15:10, 11 March 2016
Specify the function to call when the socket has received a new connection.
Syntax
Socket.SetNewConnFunc( function )
Arguments
- string function - The name of the function to call.
Notes
As a client, this function has no arguments.
As a server:
function newConn( clientID, clientIP, clientPort )
Example
Please refer to the Socket Example for a advanced usage of all socket functions.