ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_win32.c
(Generate patch)

Comparing libev/ev_win32.c (file contents):
Revision 1.7 by root, Fri Jan 2 22:39:31 2009 UTC vs.
Revision 1.8 by root, Fri Jan 2 23:23:32 2009 UTC

82 goto fail; 82 goto fail;
83 83
84 if ((sock [1] = accept (listener, 0, 0)) < 0) 84 if ((sock [1] = accept (listener, 0, 0)) < 0)
85 goto fail; 85 goto fail;
86 86
87 /* windows vista returns fantasy port numbers for getpeername. 87 /* windows vista returns fantasy port numbers for sockets:
88 * example for two interconnected tcp sockets: 88 * example for two interconnected tcp sockets:
89 * 89 *
90 * (Socket::unpack_sockaddr_in getsockname $sock0)[0] == 53364 90 * (Socket::unpack_sockaddr_in getsockname $sock0)[0] == 53364
91 * (Socket::unpack_sockaddr_in getpeername $sock0)[0] == 53363 91 * (Socket::unpack_sockaddr_in getpeername $sock0)[0] == 53363
92 * (Socket::unpack_sockaddr_in getsockname $sock1)[0] == 53363 92 * (Socket::unpack_sockaddr_in getsockname $sock1)[0] == 53363

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines