*/ namespace Asio; /** * Interface DatagramSocket * * @package Asio */ interface DatagramSocket extends Socket { /** * Receive asynchronously from datagram socket. * * @param int $length * @param callable $callback[optional] : Receive handler callback * @param mixed $argument * @return Future */ function recvFrom(int $length, callable $callback, $argument = null); }