Hey guys, getting an odd error here... The code involved:

            $master_socket = socket_create_listen($this->port);

            socket_bind($master_socket, '', $this->port);
            socket_set_option($master_socket, SOL_SOCKET, SO_REUSEADDR, 1);

And I'm getting:

'PHP Warning:  socket_bind(): unable to bind address [22]: Invalid argument
in /home/luke/talkserver/new/classes/server.php online 30'

$this->port is valid, I've checked both this and that socket_create_listen
seems to be executing correctly.

I'm a bit lost on the error too it seems to be what the php.net manual says
are the parameters?

I'm trying to create a listening socket server that binds to a port on the
local machine.

Thanks in advance for any help!

Luke Slater

Reply via email to