Using the Packet mode in pseudo terminal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I have created a pseudo terminal. I am running a application
on the slave side of the terminal and reading the data from the
application on the master side. I am using "read" system call
to read the data from the master pty.

Is there a way to separate the packets read from the master
pty. Since i am using read system call, the data is read as
a stream of bytes. I am not able to demarcate the packets
posted by the application.

I saw an option TIOCPKT for pty..? If i just set this ioctl,
how do i separate the packet ? When can i use this
option ?. Can anyone give any example using this option.

Thanks,
Vanitha

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux