Difference between revisions of "enet.peer:disconnect"

(Created page with "Requests a disconnection from the peer. The message is sent on the next host:service() or host:flush(). == Function...")
 
m (stylistic edit.)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
 
{{param|number|data|An optional integer value to be associated with the disconnect.}}
 
{{param|number|data|An optional integer value to be associated with the disconnect.}}
 
=== Returns ===
 
=== Returns ===
None
+
Nothing.
  
 
== See Also ==
 
== See Also ==
Line 18: Line 18:
 
* [[enet.peer]]
 
* [[enet.peer]]
 
== Other Languages ==
 
== Other Languages ==
{{i18n|enet.host:disconnect}}
+
{{i18n|enet.peer:disconnect}}

Latest revision as of 02:11, 30 October 2016

Requests a disconnection from the peer. The message is sent on the next host:service() or host:flush().

Function

Synopsis

peer:disconnect(data)

Arguments

number data
An optional integer value to be associated with the disconnect.

Returns

Nothing.

See Also

Other Languages