asynchronous

class AsyncOscProtocol(*, name: str | None = None, on_connect_callback: Callable | None = None, on_disconnect_callback: Callable | None = None, on_panic_callback: Callable | None = None)

Bases: DatagramProtocol, OscProtocol

activate_healthcheck() None
async connect(ip_address: str, port: int, *, healthcheck: HealthCheck | None = None)
connection_lost(exc) None

Called when the connection is lost or closed.

The argument is an exception object or None (the latter meaning a regular EOF is received or the connection was aborted or closed).

connection_made(transport) None

Called when a connection is made.

The argument is the transport representing the pipe connection. To receive data, wait for data_received() calls. When the connection is closed, connection_lost() is called.

datagram_received(data, addr) None

Called when some datagram is received.

async disconnect() None
error_received(exc) None

Called when a send or receive operation raises an OSError.

(Other than BlockingIOError or InterruptedError.)

register(pattern: Sequence[float | str], procedure: Callable[[OscMessage], Awaitable[None] | None], *, failure_pattern: Sequence[float | str] | None = None, once: bool = False, args: tuple | None = None, kwargs: dict | None = None) OscCallback

Register a callback.

send(message: Sequence | SupportsOsc | str) None
unregister(callback: OscCallback) None