datastream.StreamToServer
From GMod Wiki
Function | |
Syntax |
datastream.StreamToServer( String handler, Table :Var data, Function callback[, Function accept_callback] ) Where is this used? |
Description: | |
Sends a datastream to the server. The server must allow you to send the stream. Accept callback is called whenever the server accepts or denies your stream. Callback is called when the operation is complete. | |
Returns: | Number tempid |
Part of Library: | datastream |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Datastream.StreamToServer]Datastream.StreamToServer [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The server must accept the stream, otherwise the stream is discarded. Look at the AcceptStream hook.
- Please note that because this is clientside, any data that is sent from this function MAY NOT BE VALID, as clientside files may be changed by the client at will.