Core Function SSRead

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
()
Line 13: Line 13:
 
The message buffer to read from.
 
The message buffer to read from.
  
==== <data type> ====
+
==== <data-type> ====
  
 
The type of data to read from the message buffer valid options are:
 
The type of data to read from the message buffer valid options are:

Revision as of 05:15, 13 June 2015

SSRead( <message buffer>, <data type> )

Contents

Description

Read data from a message.

Parameters

<message buffer>

The message buffer to read from.

<data-type>

The type of data to read from the message buffer valid options are:

[CODE]		[TYPE]
"v"		Binary (Array of bytes) // This returns a binary variable)
"b"		Byte
"s"		Int16
"i"		Int32
"l"		Int64
"S"		UInt16
"I"		UInt32
"L"		UInt64
"f"		Float
"d"		Double
"p"		String

Return Value

Success: Returns the data as requested.

Failure: Returns 0.

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