Hello. How can I access SmartIRC cvs? I made few bugfixes and small
changes to it, but I want first to see is they is already fixed in cvs
http://www.TopProgs.com technical director and co-founder
On Wed, 2004-02-04 at 20:06, Dmitry Parnas wrote:
> There is one problem with DCC send. When you create listening socket
> you can't specify how much to wait until client will connect (in
> socket_accept). So there is no possibility to reliable handle
> timeouts. First I started to emulate multithreating with
> exec("dcc.php") in background (they were communicating via flag files)
> but it's something that is not possible under PEAR (or am I wrong?)
> course you will need to set file and directory rights before you will
> can use DCC and so on.
uuhh this sounds like a real problem... writing temporarly files should
be ok if its placed in the system temp folder.
though using shared memory or something that windooze may also support
would be better than temp files...
> Do you have any ideas? I'm thinking about using pcntl (Process Control
> Functions) but this will require php compiled it and will not work on
> windows. I can use it only for send thought and implement receive
> using only sockets... Anyway, drop me few lines on that, please.
no pcntl is bad, it would break windooze compatibility, the usleep()
problem with windooze is already worse, lets dont make it more worse :)
err are you sure that socket_accept always block even if the socket is
in non blocking mode? you should experiment, if everything fails,
SmartIRC may fork into 2 branches, minimal features for windows, all
features for linux, but I would really like to avoid that OS mess ;)
good luck and please keep me updated!
I really appreciate your work!