文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>内核中关于TCP socket状态的描述

内核中关于TCP socket状态的描述

时间:2010-03-19  来源:zimang

net/ipv4/tcp.c

* Description of States:
 *
 *    TCP_SYN_SENT        sent a connection request, waiting for ack
 *
 *    TCP_SYN_RECV        received a connection request, sent ack,
 *                waiting for final ack in three-way handshake.
 *
 *    TCP_ESTABLISHED        connection established
 *
 *    TCP_FIN_WAIT1        our side has shutdown, waiting to complete
 *                transmission of remaining buffered data
 *
 *    TCP_FIN_WAIT2        all buffered data sent, waiting for remote
 *                to shutdown
 *
 *    TCP_CLOSING        both sides have shutdown but we still have
 *                data we have to finish sending
 *
 *    TCP_TIME_WAIT        timeout to catch resent junk before entering
 *                closed, can only be entered from FIN_WAIT2
 *                or CLOSING.  Required because the other end
 *                may not have gotten our last ACK causing it
 *                to retransmit the data packet (which we ignore)
 *
 *    TCP_CLOSE_WAIT        remote side has shutdown and is waiting for
 *                us to finish writing our data and to shutdown
 *                (we have to close() to move on to LAST_ACK)
 *
 *    TCP_LAST_ACK        out side has shutdown after remote has
 *                shutdown.  There may still be data in our
 *                buffer that we have to finish sending
 *
 *    TCP_CLOSE        socket is finished
 */

相关阅读 更多 +
排行榜 更多 +
僵尸火车

僵尸火车

飞行射击 下载
飞机大战雷霆战机

飞机大战雷霆战机

飞行射击 下载
lonewolf

lonewolf

飞行射击 下载