use the setcommmask() and then the waitcommevent() api. you first need to the o/s handle of the tcp port by using fileattr(hcomm&,-2).
see http://www.powerbasic.com/support/pb...ad.php?t=14736
btw, just to be clear - this should work fine, but intermixing api and native comm code canniot be guaranteed to work perfectly in all situations, although i've not heard anyone report any problems with the technique.
------------------
lance
powerbasic support
mailto:[email protected][email protected]</a>
Announcement
Collapse
No announcement yet.
Comm Question
Collapse
X
-
Comm Question
I'm sure someone has posted this question..
I want to trigger a comm event as an Event, ie, the phone rings I have something like this:
Code:Case %ID_COMMRING AnswerPhone
Can this be done as it can with TCP??
Perhaps if I use the same sample from the TCP file server that's floating about (Rserver?)..
Scott
------------------
Scott
mailto:[email protected][email protected]</A>Tags: None
Leave a comment: