This is the mail archive of the cygwin-apps@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sendto function


That as the fragment where I think the problem occurs. I've attached the
whole program now as it's pretty small.

It's an optional process used by squid to ping web servers to decide whether
a direct connection or parent connection is most efficient.

yes, it calls socket and so on.

I doctored the icmp.h and in.h headers from Linux (where other cygwin
headers seem to have come from :-) ) - so I won't be surprised if the
problem is the supporting code is missing.../

Rob

----- Original Message -----
From: "Corinna Vinschen" <vinschen@cygnus.com>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: "cygapp" <cygwin-apps@sourceware.cygnus.com>
Sent: Wednesday, July 12, 2000 11:03 PM
Subject: Re: sendto function


> Robert Collins wrote:
> >
> > Is the sendto function capable of sending icmp packets?
> >
> > The following code fragment is not working properly...
> > It runs on Un*x at the moment, and I'm hoping for some hint/direction
for me
> > to alter it, or alter cygwin to get it working.
>
> This works on unix? I'm missing the icmp_sock definition
> as well as the socket() call. fd 2 is used which is stderr
> typically. Are you sure that you got your icmp_sock descriptor
> by a socket() call? Or is that application called by inetd
> with already opened descriptors?
>
> Corinna
>
> --
> Corinna Vinschen
> Cygwin Developer
> Cygnus Solutions, a Red Hat company
>

pinger.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]