Method _Stdio.UDP()->read()
class_Stdio.UDP
- Method
read
mapping(string:int|string)|zeroread()
mapping(string:int|string)|zeroread(intflag)- Description
Read from the UDP socket.
Flag
flagis a bitfield, 1 for out of band data and 2 for peek- Returns
On success a mapping(string:int|string) in the form ([ "data" : string received data "ip" : string received from this ip "port" : int ...and this port ])
Returns
0(zero) if no data was available to read on a nonblocking socket.- See also