Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Listening socket, connected socket?

Dikenal juga sebagai: listening socket · connected socket

Definition 16.6 University Computer Science — Year 2 · Bab 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.
Baca dalam konteks →