- commit
- 44a58353f3c44f2f7fafc755c9b112ba9f58ce06
- parent
- a4a62ba4640dee020fd1450e2e43270df2636cc1
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2014-10-05 10:02
Fixup "split protocol into client and server part"
Diffstat
| M | laneya/client.py | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/laneya/client.py b/laneya/client.py
@@ -6,6 +6,7 @@ from twisted.internet.endpoints import TCP4ClientEndpoint 6 6 from twisted.internet import reactor 7 7 8 8 import protocol -1 9 import deferred as q 9 10 10 11 11 12 def _print(s): @@ -31,8 +32,7 @@ def main(): 31 32 log.startLogging(sys.stdout) 32 33 endpoint = TCP4ClientEndpoint(reactor, 'localhost', 5001) 33 34 d = endpoint.connect(Factory.forProtocol(ClientProtocol))34 -1 d.addCallbacks(connected, log.err)35 -1 # q.fromTwisted(d).then(connected, log.err)-1 35 q.fromTwisted(d).then(connected, log.err) 36 36 reactor.run() 37 37 38 38