getsockname problem
Antonio Querubin
tony@lava.net
Sat Apr 8 03:13:00 GMT 2006
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/
More information about the Cygwin
mailing list