socket选项LINGER介绍

以winsock为例。服务器 typedef struct linger {   u_short l_onoff;   u_short l_linger; } LINGER, *PLINGER, *LPLINGER;socket 该选项可用来设置关闭socket的行为。code 用法:资源 LINGER lingerStruct; // If we're supposed to abort the
相关文章
相关标签/搜索