serial programming, C/C++ Programming

Hi
I''m trying to connect to CISCO router using termios. So I decided to have two threads one for reading data and the other one for writing data. The problem is that I have to add at least an usleep(70000) command after writing to the port otherwise the output would not be what I expect. Without this usleep command, every character I type, the output is shown with next character not at time :

Router>
Router>abc // While I typed "abcd". If I continue with typing "e", then the output will be "abcd" and so on ...



How can I fix this? If the code is needed please tell me to send it for you.
Please help me.
Thanks
Posted Date: 4/6/2013 3:42:52 AM | Location :







Related Discussions:- serial programming, Assignment Help, Ask Question on serial programming, Get Answer, Expert's Help, serial programming Discussions

Write discussion on serial programming
Your posts are moderated
Related Questions

describe how identifiers of different data type are defined using this notaion?


Program to show the ascii value of characters: int main() {                 int one_char;                 cout                 one_char = getch();

wap to print padovan string in c

exemples of many to many

C Program to copy the contents of a file: void main()    {   ifstream fin("input.txt");   ofstream fout("output.txt");   char ch;   while (fin)       {

Define the Volatile Keyword Qualifiers in C Language? The volatile keyword proceed as a data type qualifier and a volatile variable is for dynamic use. E.G. for data that is to

a program to find the area under curve y=f(x) between x=a and x=b,integrate y=f(x) between the limits of a and b.

What are header files? What are their uses? - Header files are also known as library files. - They carry two significant things: definitions and prototypes of functions bein