sockets extension
| From: | Daniel Beulshausen | Date: | Wed, 16 May 2001 19:28:11 +0000 |
| Subject: | sockets extension | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55525@lists.php.net to get a copy of this message | ||
hi,
i've updated the sockets extension so that it's usable under win32 as well, however it's incompatible to the "old extension" for some reasons (thats why i want some feedback):
sockets fd under win32 are usigned, the previous approach of returning long's and check for < 0 wouldn't have worked, thus it's been converted to use resources (which is also cleaner behaviour IMO).
the return values of most functions had to be changed, because win32 has an complete different error handling.
as that together would already break old scripts i've also renamed the functions to (hopefully) go with the standards.
daniel
/*--
daniel beulshausen - daniel@php4win.de
using php on windows? http://www.php4win.de
Attachment: [application/octet-stream] sockets.tar.gz
Attachment: [application/octet-stream] sockets.tar.gz