Re: Need help to make php3 module work on win32

From: Date: Mon, 29 Mar 1999 17:02:35 +0000
Subject: Re: Need help to make php3 module work on win32
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-4811@lists.php.net to get a copy of this message
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@schell.de | for PGP public key -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4811) next »