|
|
|
MS TAPI2.X и программное управление потоком модем-комп
|
|||
|---|---|---|---|
|
#18+
Всем привет. проблема такая - с использованием TAPI делаю программу для передачи сообщений через аналоговый модем. Для функций чтения/записи ReadFile/WriteFile делаю настройки через SetCommTimeouts: Код: plaintext 1. 2. 3. 4. 5. в MSDN по этому поводу: If an application sets ReadIntervalTimeout and ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant to a value greater than zero and less than MAXDWORD, one of the following occurs when the ReadFile function is called: If there are any bytes in the input buffer, ReadFile returns immediately with the bytes in the buffer. If there are no bytes in the input buffer, ReadFile waits until a byte arrives and then returns immediately. If no bytes arrive within the time specified by ReadTotalTimeoutConstant, ReadFile times out. Посему читаю посимвольно, с контролем длины сообщений. Все работает отлично, пока управление потоком com-port <-> модем аппаратное. Если переключиться на софтовое xon/xoff - то передача некоторое время идет, потом затыкается на чтении: Код: plaintext 1. 2. 3. 4. 5. 6. 7. видно что отваливается по таймауту. Кто сталкивался с таким, чем лечить? Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.10.2013, 14:50:50 |
|
||
|
|

start [/forum/topic.php?fid=57&fpage=71&tid=2019932]: |
0ms |
get settings: |
9ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
75ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
18ms |
get tp. blocked users: |
1ms |
| others: | 217ms |
| total: | 345ms |

| 0 / 0 |
