Newbie switching from TCL

Alex Martelli alex at magenta.com
Thu Aug 24 10:13:58 EDT 2000


"Paul Duffin" <pduffin at hursley.ibm.com> wrote in message
news:39A506B8.C32B8857 at hursley.ibm.com...
    [snip]
> BTW. Does overlapping I/O work with sockets ?

Yes, if the socket is built with the overlapped attribute.

Normally, the socket() function does so build it, but the
default can be changed (at winsock stack installation
time, I think) -- one may also use WSA_FLAG_OVERLAPPED
among the dwFlags parameter to WSASocket to avoid relying
on any such maybe-changeable default.

WSASend, WSARecv, etc, all accept pointers to WSAOVERLAPPED
structures and completion-routines (can be passed as 0 for
non-overlapped operation).

This is true of 'Windows Socket 2', btw, and wasn't back
in winsock 1.whatever -- but winsock 2 _has_ been around
for a while now, I think.


Alex






More information about the Python-list mailing list