Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Problem with pseudo terminals
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


Report this thread to moderator Post Follow-up to this message
Old Post
brankok@dkts.co.yu
12-28-04 09:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:43 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.