Article View: comp.os.ms-windows.programmer.networks
Article #30Re-active modem transmission in async. mode
From: DONG
Date: Thu, 29 Apr 1999 00:00
Date: Thu, 29 Apr 1999 00:00
26 lines
1463 bytes
1463 bytes
In my modem communication software, I use the async. I/O mode for data transmission. I defines an Overlap event and then pass it to the writefile call. Before each WriteFile call, I wait for the Overlap event turning to singaled state. But several minutes after the start of transmission, I found that the transmission is interrupted and the overlap event remains always non-signaled. So I try to restart the transmission with the following instructions: ClearCommError(ModemFile, &dwError,&dwStatus); PurgeComm(ModemFile, PURGE_TXABORT | PURGE_TXCLEAR); SetEvent(TxOverlap.hEvent); The modem transmission remains suspended. I have tried to add SetCommBreak(.) and ClearCommBreak(). No effect. Can anyone tell me what it is wrong and how to re-activate the modem transmission in such case? Thanks in advance. Lixin DONG
Technical Details
Message-ID:
<01be929c$d060a260$ba4ee8c3@dong>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113dfb,7a49e24e95184722,start X-Google-Attributes: gid113dfb,public X-Google-Thread: 1053e6,7a49e24e95184722,start X-Google-Attributes: gid1053e6,public X-Google-Thread: fa91f,7a49e24e95184722,start X-Google-Attributes: gidfa91f,public From: "DONG" <lixinDong@csi.com> Subject: Re-active modem transmission in async. mode Date: 1999/04/29 Message-ID: <01be929c$d060a260$ba4ee8c3@dong> X-Deja-AN: 472501363 Newsgroups: comp.os.ms-windows.programmer.networks,comp.os.ms-windows.programmer.win32,fr.comp.os.ms-windows.programmation