jetblack_datagram
async function jetblack_datagram.start_udp_server ¶
Summary¶
Create a datagram server.
async jetblack_datagram.start_udp_server(
addr: Address,
*,
loop: Optional[AbstractEventLoop],
maxreadqueue: int
) -> DatagramServerParameters¶
addr: AddressThe address of the server
loop: Optional[AbstractEventLoop] (optional)The asyncio event loop. Defaults to None.
maxreadqueue: int (optional)The maximum size of the read queue. Defaults to 0.
async function jetblack_datagram.open_udp_connection ¶
Summary¶
Create a datagram client.
async jetblack_datagram.open_udp_connection(
addr: Address,
*,
loop: Optional[AbstractEventLoop],
maxreadqueue: int
) -> DatagramClientParameters¶
addr: AddressThe address of the server.
loop: Optional[AbstractEventLoop] (optional)THe asyncio event loop. Defaults to None.
maxreadqueue: int (optional)The maximum size of the read queue. Defaults to 0.
class DatagramBase ¶
Summary¶
Initialise the datagram base class
jetblack_datagram.DatagramBase(
base: DatagramProtocolImpl
) -> None
class DatagramServer(DatagramBase) ¶
Summary¶
Initialise the datagram base class
jetblack_datagram.DatagramServer(
base: DatagramProtocolImpl
) -> Nonemethod DatagramServer.abort ¶
Summary¶
Close immediately without waiting for pending operations to complete.
Description¶
Any buffered data will be lost.
DatagramServer.abort() -> None
async method DatagramServer.recvfrom ¶
Summary¶
Read a datagram
async DatagramServer.recvfrom() -> Tuple[bytes, Address]
class DatagramClient(DatagramBase) ¶
Summary¶
Initialise the datagram base class
jetblack_datagram.DatagramClient(
base: DatagramProtocolImpl
) -> Nonemethod DatagramClient.abort ¶
Summary¶
Close immediately without waiting for pending operations to complete.
Description¶
Any buffered data will be lost.
DatagramClient.abort() -> None