Core Function SSBufferNew

From Sputnik Wiki
Jump to: navigation, search
 SSBufferNew( <nothing/server/client> )

Contents

Description

Create a new net buffer to store data to send to the client/server.

Parameters

<nothing/server/client>

Optional; The client/server object to request the new buffer from.

If this param is not given then the net buffer will created stand alone and can be still be sent just fine.

Return Value

Success: Returns message buffer object.

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