Currently when dealing with a UnixServer, its connections do not return a value for getRemoteAddress, the returned value is actually NULL.
I`d like it to return the PID of the connecting client. Is that something you would integrate in this library?
public function getRemoteAddress()
{
if($this->unix){
$socket = socket_import_stream($this->stream);
return socket_get_option($socket, SOL_SOCKET, 17 /*SO_PEERCRED*/);
}
return $this->parseAddress(@stream_socket_get_name($this->stream, true));
}
See http://php.net/manual/en/function.socket-get-option.php#101380