🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2858

Carrier Detection with Comm functions

#2858
From: Norbert Unterberg
Date: Fri, 24 May 1991 23:02
18 lines
1386 bytes
Hello all,

is there a reliable way to query the current state of the carrier detect signal 
(the SDK calls this the RLSD, Receive Line Signal Detect). All I've found is 
the GetCommEventMask() function, which reports the _change_ of that signal. 
Even the COMMSTAT structure returned by GetCommError() only indicates that the 
transmission is waiting for this signal to be set. But what if no character is 
waiting in the transmit queue?

The way I'm currently `reading' the carrier detect is a frequent call to 
GetCommEventMask(nCid, EV_RLSD) and toggling a boolean carrier variable if the 
return value indicates a change of that signal. But there must be a better way 
of doing this things than polling.

Any ideas?

Norbert
Dortmund, FRG
Technical Details
Message-ID: <1545067579@p4.f36.n245.z2.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!unido!rwthinf!slcdec!hippo!f1.n6000.z2.fidonet.org!p4.f36.n245.z2.fidonet.org!Norbert_Unterberg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!unido!rwthinf!slcdec!hippo!f1.n6000.z2.fidonet.org!p4.f36.n245.z2.fidonet.org!Norbert_Unterberg
From: Norbert_Unterberg@p4.f36.n245.z2.fidonet.org (Norbert Unterberg)
Newsgroups: comp.windows.ms.programmer
Subject: Carrier Detection with Comm functions
Message-ID: <1545067579@p4.f36.n245.z2.fidonet.org>
Date: 24 May 91 23:02:00 GMT
Reply-To: Norbert_Unterberg%p4.f36.n245.z2@hippo.dfv.rwth-aachen.de (Norbert Unterberg)
Organization: Point of SoftStream, Dortmund, Germany
Lines: 19
Comment-To: All@f1.n6000.z2.fidonet.org (All)