Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Listening socket, connected socket » ?

Aussi appelé : listening socket · connected socket

Definition 16.6 University Computer Science — Year 2 · Chapitre 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.
Lire dans le chapitre →