LINUX平台收发TCP URG报文

LINUX平台收发TCP URG报文

客户端:
sz = send(sd, "hello", 5, MSG_OOB);
发送字节:5, 内容:'hello'

服务端:
sz = recv(sd, buf, sizeof(buf), MSG_OOB);
OOB接收字节:1, 内容:'o'
sz = recv(sd, buf, sizeof(buf), 0);
普通接收字节:4, 内容:'hell'

posted @ 2019-07-25 17:31  mull  阅读(289)  评论(0编辑  收藏  举报