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] |
Should have read the man page instead!
s = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); printf("socket = %d\nlength = %d\n", s, len);
rc = getsockname(s, (struct sockaddr *) &sa, &len);
http://www.opengroup.org/onlinepubs/007908799/xns/getsockname.html
"If the socket has not been bound to a local name, the value stored in the object pointed to by address is unspecified."
-- 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] |