tcp

class platypush.backend.tcp.TcpBackend(port, bind_address=None, listen_queue=5, *args, **kwargs)[source]

Backend that reads messages from a configured TCP port

__init__(port, bind_address=None, listen_queue=5, *args, **kwargs)[source]
Parameters
  • port (int) – TCP port number

  • bind_address (str) – Specify a bind address if you want to hook the service to a specific interface (default: listen for any connections)

  • listen_queue (int) – Maximum number of queued connections (default: 5)

run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.