Core Function SSBufferPut
From Sputnik Wiki
SSBufferPut( <netBuffer>, <type>, <data> )
Contents |
Description
Add data to a net buffer.
Parameters
<netBuffer>
The net buffer to write to.
<data type>
The type of data to write to the message buffer valid options are:
[CODE] [TYPE] "v" Binary (Writes an Int32 for size then writes the bytes) "V" Binary (Writes all bytes) "b" Byte (signed) "B" Byte (unsigned) "s" Int16 "i" Int32 "l" Int64 "S" UInt16 "I" UInt32 "L" UInt64 "f" Float "d" Double "p" String
Return Value
Success: Returns true.
Failure: Returns false.
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