GitHub

API reference for Reader.

The receive side of an open socket.

pull returns everything queued since the last pull, or waits for the next packet; after a terminal error it returns what is queued, then fails with that error until the reader's scope closes. address is the bound address. dropped() counts packets the receive buffer discarded. join_multicast joins a group until its scope closes; its interface selects where packets arrive.

Attributes

AttributeTypeDescription
pullEffect[tuple[Datagram, ...], DatagramSocketError]
addressInetAddress

Functions

dropped

dropped() -> int

Returns int

def dropped(self) -> int: ...