全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Listening socket, connected socket?

又称: listening socket · connected socket

Definition 16.6 University Computer Science — Year 2 · 第 16 章 — Sockets

A listening socket is a stream socket on which listen was called: it carries no data, only connection requests, and accept turns each request into a connected socket, one per client, which carries that connection’s bytes.

The calls of  in time, top to bottom. accept returns when a client’s connect arrives; the data then flows on the new socket, while the listening one can wait for the next client.
The calls of Listing 16.2 in time, top to bottom. accept returns when a client’s connect arrives; the data then flows on the new socket, while the listening one can wait for the next client.
在原文中阅读 →