Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Listening socket, connected socket?

Ook bekend als: listening socket · connected socket

Definition 16.6 University Computer Science — Year 2 · Hoofdstuk 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.
Lees in het hoofdstuk →