RJ> This is a template.
RJ> for(;;)
RJ> {
RJ> select(i+1....) /* Timeout on select about 2 character times */
RJ> {
RJ> len = read(i, buf, LEN);
RJ> if(len)write(j, buf, len);
RJ> }
RJ> select(j+1....)
RJ> {
RJ> len = read(j, buf, LEN);
RJ> if(len) write(i, buf, len);
RJ> }
RJ> }
Would you care to explain how you would handle breaks and sttys
(i.e. serial configuration change such as parity, speed, etc.)
in the above scheme please?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/