Re: Socket_Socket as "extended copy" of Net_Socket
| From: | Stephan Seidt | Date: | Sat, 08 Feb 2003 22:19:08 +0000 |
| Subject: | Re: Socket_Socket as "extended copy" of Net_Socket | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13076@lists.php.net to get a copy of this message | ||
hey, what now? is that all? :(
Stephan Seidt wrote:
Hi I just suggested the "Socket" category some time ago and also its first package Socket_Socket. To use it seriously I thought about some compatiblity options with the Net_Socket package. What about sth like: if (!extension_loaded('sockets')) {-- if (!$TCPA->connect()) { throw new Exception('Sorry, no coffe today', EX_FATAL); }return &new Net_Socket;} I copy Net_Socket to Socket_Socket and change the code in it to work with the new sockets. I also add the new functions bind, listen, accept, select, etc. (Stig, you also agree?) bye