Re: [Twisted-Python] Simple bidirectional Socket Client

2013-06-14 Thread Marco Giusti
On Fri, Jun 14, 2013 at 02:11:20PM +0200, Raketenschnitzel wrote: ... > class Communicator(ClientFactory): > protocol = ControllerProtocol > > def __init__(self, Host, Port): > if isinstance(Host, str) and isinstance(Port, int) : > self.myHost = Host > self.

[Twisted-Python] Simple bidirectional Socket Client

2013-06-14 Thread Raketenschnitzel
Hi there, i'm new to twisted, but i want to use it in a project for dealing with the socket connection to a server for receiving and sending data. I already did some projects in Delphi and there you have an build-in eventdriven socket class. Python itself lacks at this feature (afaik) and so i