Extracted from Pike v7.4 release 341 at 2005-11-30.
pike.ida.liu.se
[Top]
predef::
Stdio
Stdio.UDP

Method Stdio.UDP()->read()


Method read

mapping(string:int|string) read()
mapping(string:int|string) read(int flag)

Description

Read from the UDP socket.

Flag flag is a bitfield, 1 for out of band data and 2 for peek

Returns

mapping(string:int|string) in the form ([ "data" : string recieved data "ip" : string recieved from this ip "port" : int ...and this port ])

See also

set_read_callback()