Re: Squid Socket question

From: Robert Collins <robert.collins@dont-contact.us>
Date: 21 Aug 2001 11:06:51 +1000

On 20 Aug 2001 23:17:41 +0200, Guido Serassio wrote:
> Hi Guys,
>
> I have the following question related to Squid native Windows NT port, not
> Cygwin:

> Can be possible to substitute all "0" with the corresponding IPPROTO_UDP &
> IPPROTO_TCP defines ?
> Can work this on all *nix Systems ?
> I can find these defines on Linux and Cygwin, but I don't know if this is
> true on all supported *nix platforms.
>
> A possible variant can be:
>
> On squid.h (or config.h) like this:
>
> #ifdef _SQUID_MSWIN_
> #define SQUID_IPPROTO_TCP IPPROTO_TCP
> #define SQUID_IPPROTO_UDP IPPROTO_UDP
> #else
> #define SQUID_IPPROTO_TCP 0
> #define SQUID_IPPROTO_UDP 0
> #endif

defines.h probably, (thats where the Cygwin file mode defines went, with
much the same reasoning).

Looks fine to me,
Rob
Received on Mon Aug 20 2001 - 19:19:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:13 MST