Transport base classes - mushroom.transport

class mushroom.transport.UnreliableTransport

Base class for unreliable transports. Unreliable means that the underlying protocol does not guarantee message delivery by itself. This is typically the case for any protocol that does raw communication without a layer that guarantees message delivery by itself.

connect()

Start transport and connect to the remote side. This method is transport specific and must be overwriten.

disconnect()

Disconnect from the remote side and stop transport. This method is transport specific and must be overwritten.

handle_connect()
handle_disconnect(reconnect=False)
handle_heartbeat(heartbeat)
handle_message(message)
real_send(message)

Perform the actual send operation. This method is only called internally and should not be called from application code. This method is transport specific and must be overwritten.

send(message)