note for tcflush

来源:互联网 发布:centos7修改ssh端口 编辑:程序博客网 时间:2024/06/12 21:01

tcflush

int tcflush(int fd, int queue_selector);

tcflush() discards data written to the object referred to by fd but not transmitted, or data received but not read, depending on the value of queue_selector. 

TCIFLUSH

flushes data received but nor read.

TCOFLUSH

flushes data written but not transmitted.

TCIOFLUSH

flushes both data received but not read, and data written but not transmitted.


0 0
原创粉丝点击