Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Listening socket, connected socket?

También llamado: listening socket · connected socket

Definition 16.6 University Computer Science — Year 2 · Capítulo 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.
Leer en el capítulo →