Core Function SSBufferNew
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> SSBufferNew( <nothing/server/client> ) </pre> === Description === Create a new net buffer to store data to send to the client/server. === Parameters === ==== <nothing/...")
(Created page with "<pre> SSBufferNew( <nothing/server/client> ) </pre> === Description === Create a new net buffer to store data to send to the client/server. === Parameters === ==== <nothing/...")
Latest revision as of 06:28, 15 June 2015
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