Core Function SSRecv

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
(Success if first param is SERVER)
 
(2 intermediate revisions by one user not shown)
Line 24: Line 24:
  
 
$array[2] = ClientUniqueID
 
$array[2] = ClientUniqueID
 
$array[3] = ClientIP
 
  
 
==== Success if first param is CLIENT ====
 
==== Success if first param is CLIENT ====
Line 34: Line 32:
  
 
==== Failure ====
 
==== Failure ====
Failure: Returns 0.  
+
Failure: Returns null.
  
 
=== Remarks ===
 
=== Remarks ===

Latest revision as of 06:14, 15 June 2015

SSRecv( <server/client> )

Contents

Description

Check for a message recieved from client/server.

Parameters

<server/client>

The server/client object to use.

Return Value

Success if first param is SERVER

Returns an array with 4 items the MessageType, client socket, client unique id, client ip from the message recieved

$array[0] = MessageType

$array[1] = ClientSocket

$array[2] = ClientUniqueID

Success if first param is CLIENT

Returns an array with only 1 item the MessageType from the message recieved

$array[0] = MessageType

Failure

Failure: Returns null.

Remarks

This is NOT a generic socket toolset; You can't use this to connect to anything instead it is used to connect Sputnik clients with Sputnik servers in a very easy to use way.

Example

See the Listen() and Connect() for examples

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox