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


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

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