Difference between revisions of "ServerObject:setCallback"
Simonlarsen (talk | contribs) m (changed setCallbacks to setCallback) |
|||
Line 3: | Line 3: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | server: | + | server:setCallback(receive, connect, disconnect) |
</source> | </source> | ||
=== Arguments === | === Arguments === |
Latest revision as of 23:26, 23 June 2011
Sets the callbacks for the server.
Function
Synopsis
server:setCallback(receive, connect, disconnect)
Arguments
function receive
- Callback called on incoming data(filtered): function(data, id).
function connect
- Callback called when client(s) connect: function(id).
function disconnect
- Callback called when client(s) disconnect (also called by ping): function(id).
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info