Mail Archives: djgpp/1996/12/26/02:54:53
>> how do I set a modem to anwser in DJGPP, so that I can dial into it
>> and have it recieve the data?
>
> Try:
> FILE *modem;
> char resp[10];
>
> modem = fopen( "COM1", "rw" ); /* Assuming your modem is at COM1: */
> fprintf( modem, "ATS0=1\n" ); /* This may be \r rather than \n. */
> fread( resp, 3, 1, modem );
> if (strncmp( resp, "AT", 2 ) == 0)
> fprintf( stderr, "Modem ready to answer!\n" );
> :::
Hm, may be it works very well, but i'm sure if you want
a good modem programm use one of interupt handler lib.
Check DJGPP (or SimTel) site for URL to bcserio.zip.
--
Regards,
Dim Zegebart,
Moscow Russia.
- Raw text -