[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK
From: |
afn06760 |
Subject: |
LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK |
Date: |
Fri, 13 Mar 1998 03:44:38 GMT |
> * From: address@hidden
> * Date: Wed, 11 Mar 1998 18:37:57 GMT
>
>Code added to WWW/Library/Implementation/HTTCP.c.
>This actually seems to work. (Sorry, not in patch
>format)
>=================================================
>
>#ifdef _WINDOWS
>void _fork_fun (void *phost)
>{
> long r_val;
>
> r_val = (long)gethostbyname(*(((char ***)phost)[1]));
> if (r_val == (long)NULL) r_val = -1L;
> *((void ***)phost)[0] = (void *)r_val;
>}
>#endif
>
>====================================================
Of course, you could also try WSAAsyncGetHostByName, but
that would _really_ change the generally Unix nature of the
code.
- LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK,
afn06760 <=
- LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK, afn06760, 1998/03/13
- LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK, afn06760, 1998/03/14
- LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK, afn06760, 1998/03/14
- LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK, afn06760, 1998/03/14
- Re: LYNX-DEV Re: _WINDOWS patch for doing NSL_FORK, afn06760, 1998/03/15