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'

原文地址:https://www.cnblogs.com/mull/p/11245676.html