Re: [PHP-DEV] Need help to make php3 module work on win32 From: Sascha Schumann (sascha <email protected>)
Date: 03/29/99

On Mon, Mar 29, 1999 at 07:02:35PM +0200, Sascha Schumann wrote:
> 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.

if(connect(...) != 0) perror("connect");

Argh, I'm completely confused today. Sorry, I'll shut up now.

-- 

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>