Code Comments
Programming Forum and web based access to our favorite programming groups.Hello all! I would be most grateful for your help. I am developing an application that has to communicate with another program using pseudo terminals. My application opens the pseudo-terminal master.Then it creates a child, the child establishes a new session, opens the corresponding pseudo-terminal slave, and then calls exec replacing the calling program with another program. The problem rises when data starts arriving from another program to my application: In spite of the fact that a pseudo terminal works in canonical mode, the system does not return one line at a time. In contrast, the read returns the variable number of bytes (parts of one line). If I try to open a new terminal window and, from that window, write some text to the slave pseudo terminal device associated to the program that sends lines in parts to my application, the text appears in my application as it was expected (the whole lines). I would really appreciate it very much if anyone could provide me with some additional information or give me some advice I could follow. Kindest regards, Branko
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.