Subject: Re: getsockname problem
From: Antonio Querubin <[email-masked]>
To: Reid Thompson <[email-masked]>
Cc: [email-masked]
Date: Fri, 7 Apr 2006 17:09:36 -1000 (HST)

On Fri, 7 Apr 2006, Reid Thompson wrote:

> well,,, not 'any' other linux system...
>
> $ ./getsockname
> socket = -1
> length = 16
> getsockname rc = -1
> returned length = 16
> getsockname: Bad file descriptor

That points out an error in getting the raw socket, not in getsockname() 
itself.  getsockname() can't work on an invalid socket.  Maybe you didn't 
have the right priviledges to get the raw socket on the run above?  On 
most systems you need admin/root priviledges to get the raw socket.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/