xbox.auxiliary.relay module

exception xbox.auxiliary.relay.AuxiliaryPackerException

Bases: Exception

class xbox.auxiliary.relay.ConsoleConnection(address, port, crypto)

Bases: object

BUFFER_SIZE = 2048
start()
stop()
handle(data)
async send(msg)
class xbox.auxiliary.relay.LocalConnection

Bases: asyncio.protocols.Protocol

data_received_event = <xbox.sg.utils.events.Event object>
connection_made_event = <xbox.sg.utils.events.Event object>
connection_made(transport: asyncio.transports.BaseTransport)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.

data_received(data: bytes)None

Called when some data is received.

The argument is a bytes object.

close_connection()None
class xbox.auxiliary.relay.AuxiliaryRelayService(loop: asyncio.events.AbstractEventLoop, connection_info: xbox.sg.utils.struct.XStructObj, listen_port: int)

Bases: object

async run()
connection_made(transport)