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
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Homework – Chapter 5 – Bowling Scores 33. Write a complete C++ program to do the following: The main program reads in and prints three bowling scores, score1, score2, and score



Write a method (belonging to the TermStructure class) that takes a pointer to an array of bonds and an integer, representing the number of bonds in the array as arguments, and esti

Selection sort - C program: Write a program to define a selection sort. void main()  {   clrscr();   int a[100],ch,n;   cout   cin>>n;   for (int i=0;i

I want a Reverse engineer a .exe to obtain the code Project Description: I'd like to get the full C++ source code from a .exe please Skills required is C++ Programming

Each of the following two procedures defines a method for adding two positive integers in terms of the procedures inc, which increments its argument by 1, and dec, which decrements

please help me get all the inbuilt functions in c++