src/FreeDSx/Socket/SocketServer.php
public function receive(&$ipAddress = null)
    {
        $this->block(true);

        return \stream_socket_recvfrom($this->socket, 65507, 0, $ipAddress);
    }
public function receive(&$ipAddress = null)
    {
        $this->block(true);

        return \stream_socket_recvfrom($this->socket, 65507, 0, $ipAddress);
    }
public function receive ( & $ ipAddress = null ) { $ this -> block ( true ) ; return \ stream_socket_recvfrom ( $ this -> socket , 65507 , 0 , $ ipAddress ) ; }
Receive data from a UDP based socket. Optionally get the IP address the data was received from.

@todo Buffer size should be adjustable. Max UDP packet size is 65507. Currently this avoids possible truncation.
@param null $ipAddress
@return null|string
Receive data from a UDP based socket . Optionally get the IP address the data was received from .