Re: Socket error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Luke wrote:

> Hey guys, getting an odd error here... The code involved:
> 
>             $master_socket = socket_create_listen($this->port);
> 
>             socket_bind($master_socket, '127.0.0.1', $this->port);
>             socket_listen($master_socket);
>             socket_set_option($master_socket, SOL_SOCKET,
>             SO_REUSEADDR, 1); socket_set_nonblock($master_socket);
> 


I think you need to use socket_create() instead of
socket_create_listen().


/Per

-- 
Per Jessen, Zürich (21.9°C)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux