This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: getsockname problem


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/


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