enet.peer:receive

enet.peer:receive

Attempts to dequeue an incoming packet for this peer. Returns nil if there are no packets waiting. Otherwise returns two values: The string representing the packet data, and the channel the packet came from.

Function

Synopsis

peer:receive()

Arguments

None.

Returns

string data
Data from the received packet in a string.
number channel
Channel the packet was received from.

See Also

doc_love
2017-03-21 15:43:36
Comments
Leave a Comment

Please login to continue.