[ Look!  A post about programming! ;-) ]

I am writing a modem program, and was hoping you would be able to help.
This is a recurring theme, but I finally have a good start on both
the modem I/O and the surrounding logic (Finally!!).

The simplest way to explain my situation is that I need a simple,
reliable way to read status codes from the modem, especially the CONNECT
string.  This probably goes hand in hand with the need for a clean way
to get modem I/O.  Currently, I'm not sure how to best extract information
from the dev file properly; I get repeat information and missing information
a lot.  Is there a way to have input reads with a timeout, where I will wait
a few seconds and if nothing is there it returns and if I'm reading it waits
until there's a pause before returning?  How do I properly handle lock files

so I don't step on a ppp connection or something?

I have attached my program in its current state so I can hopefully
get some critiquing.

Thanks!

~Patrick

 <<modem.c>> 

modem.c

Reply via email to