On Fri, 07 Oct 2005 17:30:01 GMT, "St. John Smythe"
wrote:
Al Klein wrote:
I've been doing serial I/O (in software) since before BASCOM, yet I've
never come across "overlapped I/O", as a term. Do you mean handling 2
ports simultaneously? What language? How are you doing the I/O?
(ocx? raw code?) (The program I'm currently working on does serial
and internet simultaneously, but that's not the same thing.)
http://www.cpupedia.com/definition/overlapped+i_o.aspx
Got it working on Win 2k, XP, Win/Me and Win98. Thanks to
some nice people who volunteered to help test it for me.
Regarding overlapped: If overlapped I/O is not used then
there is no way to cancel an I/O operation because the
thread is blocked. WIN32 has a CancelIO function in the same
API but CancelIO cannot cancel I/O on another thread, only
the same thread. That makes it a real pain in the ass. But
overlapping allows the programmer to break the I/O off and
clean up without having to be in the same thread,
AFAIK.
That's why I had to use it in this case.