home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:16003 comp.unix.internals:2172
- Path: sparky!uunet!ulowell!m2c!bu.edu!cs!tasos
- From: tasos@cs.bu.edu (Anastasios Kotsikonas)
- Newsgroups: comp.unix.questions,comp.unix.internals
- Subject: sockets and prob. writing to stdout
- Message-ID: <108357@bu.edu>
- Date: 26 Jan 93 23:01:06 GMT
- Sender: news@bu.edu
- Followup-To: comp.unix.questions
- Organization: Computer Science Department, Boston University, Boston, MA, USA
- Lines: 21
- Originator: tasos@cs
-
-
- Hi,
- I have written my own server/client protocol and basically each server
- response to a client request tells the client how many bytes the server
- is sending over, so the client can count and verify that it received everyting.
-
- The client then writes out to stdout all bytes received. The problem is that
- with some terminal settings (like when over a modem line, or when running
- xterm rsh'ed to another host in the background) parts of the text are
- missing. If output is redirected to a file, the file is complete.
-
- Has anyone seen this before? Any suggestions to the cause? Solutions?
- Should the client do an fflush() after each write() to stdout? Is there
- any ioctl() call that will "sunchronize" the tty (whatever that means)?
-
- Mind you that I can use telnet instead of the client and that works ok,
- so I am wondering what telnet does.
-
- Any information will be greatly appreciated.
-
- Tasos
-