restructuring/rewriting parts of networking code

From: Date: Wed, 26 Jul 2000 10:35:06 +0000
Subject: restructuring/rewriting parts of networking code
Groups: php.dev 
Request: Send a blank email to php-dev+get-26249@lists.php.net to get a copy of this message
Hi I've started to look at the network related code in order to add IPv6 support. Resolver functions are used in many places, mostly gethostbyname. Shouldn't we use something that's thread safe? What resolver functions to use might also differ between platforms. What do you think about writing some wrapper functions so that code that uses gethostbyname uses a wrapper fuction. If we need to use different resolver functions we then only need to change it inside the wrappers. I think something similar could be done for socket stuff. Couldn't for instance fopen and the ftp functions use the fsockopen stuff? What do you think? I'm ready to start, I plan change things in small steps so that you stop me if I'm doing something stupid. If I start writing wrappers, where should I put it? A new file in main or ext/standard? Stig

« previous php.dev (#26249) next »