Method Stdio.UDP()->set_read_callback()
- Method
set_read_callback
UDPset_read_callback(function(mapping(string:int|string),mixed... :void)|zeroread_cb,mixed...extra_args)- Description
The
read_cbfunction will receive a mapping similar to the mapping returned by read():"data":stringReceived data.
"ip":stringData was sent from this IP.
"port":intData was sent from this port.
- Returns
The called object.
- See also