The connection module

Contains the Connection class.

The Connection class

Inheritance diagram of pyamp.networking.sockets.connection.Connection

class pyamp.networking.sockets.connection.Connection(server, conn, addr, logger=None)[source]

The Connection class handles receiving data from a single socket connected to a server.

This class implements the pyamp.processes.Thread and the pyamp.logging.Loggable interfaces.

  • server – The server object
  • conn – The socket connection
  • addr – The address for this connection
  • logger – The LogData or Logger object for this class
onCycle(_i)[source]

Called for each cycle of the pyamp.processes.Thread.

  • i – The current cycle number
onException(_e, traceback)[source]

Called in the event of an exception.

  • e – The exception
  • traceback – The traceback
onShutdown()[source]

Called in the event that the pyamp.processes.Thread is shutdown.

Table Of Contents

Previous topic

The sockets module

Next topic

The server module

This Page