Skip to content

Instantly share code, notes, and snippets.

View aratz-lasa's full-sized avatar

Aratz M. Lasa aratz-lasa

View GitHub Profile
@vxgmichel
vxgmichel / aioudp.py
Last active February 15, 2024 00:12
High-level UDP endpoints for asyncio
"""Provide high-level UDP endpoints for asyncio.
Example:
async def main():
# Create a local UDP enpoint
local = await open_local_endpoint('localhost', 8888)
# Create a remote UDP enpoint, pointing to the first one