This is the mail archive of the
cygwin-apps@sources.redhat.com
mailing list for the Cygwin project.
Re: sendto function
- To: Robert Collins <robert dot collins at itdomain dot com dot au>
- Subject: Re: sendto function
- From: Corinna Vinschen <vinschen at cygnus dot com>
- Date: Wed, 12 Jul 2000 15:03:56 +0200
- CC: cygapp <cygwin-apps at sourceware dot cygnus dot com>
- References: <007d01bfebfb$1aff7090$f7c723cb@lifelesswks>
- Reply-To: cygapp <cygwin-apps at sourceware dot cygnus dot com>
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