Re: new subcategory "Node" & something about processes
| From: | Stephan Seidt | Date: | Sun, 24 Nov 2002 12:32:11 +0000 |
| Subject: | Re: new subcategory "Node" & something about processes | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11058@lists.php.net to get a copy of this message | ||
Hm.. Yes.. But why don't leave Net_Socket how it is and create some new category then.
Socket is much more than a tcp/udp network socket. And where to store fifo or sysvmsg stuff then.
As said in pear's documentation I know that something shouldn't be twice available in
pear.
But in this case the second Socket solution would provide lots of nice feautres.
Because of portability, the socket extension also works for windows.
But I think you're talking about "Should i install php with sockets now because of
that?"
Well.. If someone hardly needs unix sockets in the script he must install the extension.
Why shouldn't Pear provide a nice interface to use them ?
bye
On Sun, 24 Nov 2002 12:15:22 -0000
richard@v-webmail.co.uk (Richard Heyes) wrote:
> > (seems like nobody answered my net_socket post :/ let's try something new
> ;p)
> > Okay. I'm sure that pear will need a new subcategory for connection
> endpoints,
> > because there are quite a lot of it :
> > o Sockets
> > o System V message queues
> > o FIFO named pipes
> > ...
> >
> > In future Net_Socket can't be stored in Net anymore, because it could also
> > be possible then to create UNIX sockets with it (php's new socket
> extension).
>
> Sure it can. And personally I wouldn't want Net_Socket to be converted to
> PHPs
> socket extension for portability reasons.
>
> > Of course, this new kind of Node_Socket and Node_SysVMsg (or however) need
> > experimental extensions (sockets, sysvmsg) but I think that's ok. For me
> > it already works really fine. I tried to make some benchmark with
> > Sockets against SysVMsg but this pcntl_waitpid stuff didn't work.
> > Well, here is it without any useable result :
> > http://0x03.net/sources/MsgVsSocket.phps
> > (Process.phps and Node.phps are also stored in the same directory)
> > Sockets, message queues and the ipc stuff is in usage very similar
> > to other languages like c or c++. So it's great to translate the
> > code one-to-one into another language and link php to it.
> > That's it..
>
> Node as a category or top level directory isn't exactly meaningful.
> Personally I think all this stuff could quite happily sit under the Net/
> directory.
> --
> Richard Heyes
> V-webmail - http://www.v-webmail.co.uk
>