2

From The Linux Programming Interface

enter image description here

under "data transfer" under "communication", we have "byte stream", "message" and "pseudoterminal".

Does pseudoterminal belong to byte stream instead, just like how pipe belongs?

If not, why?

Tim
  • 98,580
  • 191
  • 570
  • 977
  • It's neither. That's why under data transfer you have *three* branches and not two. A pseudoterminal is a pseudoterminal; it behaves very much like an old-school hardware terminal, and as a consequence the master side and the slave side must cooperate so that they both have the same understanding of the current mode (cooked, rare, raw). – AlexP May 25 '18 at 16:38

1 Answers1

2

Consider the various modes a pseudoterminal can be in: in raw mode, it would behave much like a byte stream, but in cooked mode, it becomes more message-like.

telcoM
  • 87,318
  • 3
  • 112
  • 232