Core Function SSRead

From Sputnik Wiki
Revision as of 12:35, 1 December 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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