[Bug 8514] getsockname
Wine Bugs
wine-bugs at winehq.org
Sat Jun 9 05:37:19 CDT 2007
http://bugs.winehq.org/show_bug.cgi?id=8514
------- Additional Comments From citizenr at gmail.com 2007-09-06 05:37 -------
I realised that I was reading that file from bottom to top while taking a
shower an hour after the post :) I looked at the code again and thers this few
lines above
if ( i == 0 ) {
peer[i].addr.sin_port = htons ( SERVERPORT );
} else {
peer[i].addr.sin_port = htons ( 0 );
}
so the author of this testcase wrote
ok ( peer[i].addr.sin_port != htons ( 0 ), "UDP: bind() did not
associate port\n" );
thinking that
a/ using sin_port returned by getsockname to check if we get the port bind is a
good idea
b/ it can happen with no SOCKET_ERROR
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the wine-bugs
mailing list