Open GoogleCodeExporter opened 9 years ago
Hi;
this issue is common when you try to bind a socket to an address&port that is
already
used by an other socket, and the last one does not permit to reuse them; to
solve it
you should set the option "SO_REUSEADDR" to "true", wich is already set in the
"socketServer" class in its __construct method.
Now i'll tell why it still to happen...
in the exapmle "httpserver" class implemented in "httpServer.php5" file is a
subclass
of "serverSocket" class; but you missed to call the parent::__construct(...)
method
in the class constructor; and as you should know php (unlike c++) does not
invoke the
parent's constructor implicitly.
that's it; hoping that it helped.
Original comment by drsl...@gmail.com
on 8 Dec 2007 at 11:05
Original issue reported on code.google.com by
andrew.w...@gmail.com
on 16 Nov 2007 at 10:31