I want to build a simple TCP server using Python and Twisted.
The server starts up and is waiting for a connection - I already have a client application other than python. After connecting, the server starts sending data from a certain interval (for example, 1 second).
The server is reading data from a static file (write at a time), I have to figure out this part.
I assume that I will use a push producer to start pushing data after a client connects.
I have a simple tcp server with a factory in a twisted state, and I can respond to connectionMade / dataReceived and so on, but I can not imagine how to connect the push producer .
Does anyone know any examples showing a push maker with a tcp server in twisted?
python twisted tcpserver
stefanB
source share