Core Function SSRecv
From Sputnik Wiki
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