Quilt

class quilt.IncomingThread(listen_port, proc_queue)

The Incoming thread handles connections from servers and passes the data they send off to the processors

Parameters:
  • listen_port (int) – the port to listen for connecting servers on
  • proc_queue (Queue) – The queue to pass messages off to processor with
class quilt.OutgoingThread(addr, port, queue)

For each outgoing connection one of these threads is created and it will forward the data in its personal Queue to the destination

Parameters:
  • addr (str) – Address of the server to connect to
  • port (int) – port number of the server to connect to
  • queue (Queue) – Data queue for outgoing data for this connection
class quilt.ProcessorThread(proc_queue, protocol)

This thread takes data out of the proc_queue and does things to that data based on the protocol

Parameters:
  • proc_queue (Queue) – Queue of data to be processed
  • protocol (QuiltProtocol) – the object used to parse the data recieved
class quilt.QuiltServer(addr, incoming_port, max_proc=10)

The main server class for Quilt, spins up threads for incoming connections and processing data, and then runs the user interface code

Parameters:
  • addr (str) – address of this server
  • incoming_port (int) – port for incoming connects
Type :

max_proc: int

Param :

max_proc: maximum number of processor threads to use

start()

Start the server and display and user interface

class quilt.QuiltServer(addr, incoming_port, max_proc=10)

The main server class for Quilt, spins up threads for incoming connections and processing data, and then runs the user interface code

Parameters:
  • addr (str) – address of this server
  • incoming_port (int) – port for incoming connects
Type :

max_proc: int

Param :

max_proc: maximum number of processor threads to use

start()

Start the server and display and user interface

class quilt.IncomingThread(listen_port, proc_queue)

The Incoming thread handles connections from servers and passes the data they send off to the processors

Parameters:
  • listen_port (int) – the port to listen for connecting servers on
  • proc_queue (Queue) – The queue to pass messages off to processor with
class quilt.ProcessorThread(proc_queue, protocol)

This thread takes data out of the proc_queue and does things to that data based on the protocol

Parameters:
  • proc_queue (Queue) – Queue of data to be processed
  • protocol (QuiltProtocol) – the object used to parse the data recieved
class quilt.OutgoingThread(addr, port, queue)

For each outgoing connection one of these threads is created and it will forward the data in its personal Queue to the destination

Parameters:
  • addr (str) – Address of the server to connect to
  • port (int) – port number of the server to connect to
  • queue (Queue) – Data queue for outgoing data for this connection

Project Versions

Previous topic

Welcome to Quilt’s documentation!

Next topic

Quilt Protocol Object

This Page