Date: 03/29/99
- Next message: Sascha Schumann: "Re: [PHP-DEV] Need help to make php3 module work on win32"
- Previous message: Zeev Suraski: "Re: [PHP-DEV] win32 compile fails :3.0.7 ; bison?"
- In reply to: Sascha Schumann: "Re: [PHP-DEV] Need help to make php3 module work on win32"
- Next in thread: Sascha Schumann: "Re: [PHP-DEV] Need help to make php3 module work on win32"
- Reply: Sascha Schumann: "Re: [PHP-DEV] Need help to make php3 module work on win32"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Mar 29, 1999 at 07:01:09PM +0200, Sascha Schumann wrote:
> On Mon, Mar 29, 1999 at 05:41:38PM +0200, Uwe Steinmann wrote:
> > Hi,
> >
> > I need some help to make the Hyperwave module, which I contributed
> > to php3, work on win32 platforms. Unfortunately I have absolutely no
> > knowledge of win32 programming.
> >
> > All I know is, that a simple script
> >
> > <? $connect = hw_connect("gehtnix.fernuni-hagen.de", 418);
> > hw_close($connect); ?>
> >
> > fails.
> >
> > The problem appears to be in open_hg_connection() in hg_comm.c.
> > On win32 the connect() system call always fails. From looking at
> > the fsock.c file, connect() seems to have different return values
> > on win32 and unix. Is that true?
> > Could a windows wizard have a quick look at line 954 in hg_comm.c
> > and tell me if this makes any sense for win32.
>
> You have to compare with != 0 instead of < 0.
Ah, no. == 0, since
RETURN VALUE
If the connection or binding succeeds, zero is returned.
On error, -1 is returned, and errno is set appropriately.
According to Internet Programming by Jamsa & Cope this is also true for
Windows.
--Regards,
Sascha Schumann | Consultant | finger sas <email protected> | for PGP public key
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: Sascha Schumann: "Re: [PHP-DEV] Need help to make php3 module work on win32"
- Previous message: Zeev Suraski: "Re: [PHP-DEV] win32 compile fails :3.0.7 ; bison?"
- In reply to: Sascha Schumann: "Re: [PHP-DEV] Need help to make php3 module work on win32"
- Next in thread: Sascha Schumann: "Re: [PHP-DEV] Need help to make php3 module work on win32"
- Reply: Sascha Schumann: "Re: [PHP-DEV] Need help to make php3 module work on win32"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

