Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

bridge.py: Revision history

From Randomness wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

12 September 2024

9 September 2024

  • curprev 21:4321:43, 9 September 2024Derg talk contribs 2,995 bytes +2,995 Created page with "<syntaxhighlight lang="python"> #!/usr/bin/python3 from twisted.internet import reactor, protocol import sys class Client(protocol.Protocol): def __init__(self, s): self.server = s self.connected = 0 self.data = [] def connectionMade(self): self.connected = 1 for a in self.data: self.transport.write(a) self.data = [] def write(self, a): if self.connected: self.transport.write(..."