From vk.86.811 at gmail.com Fri May 25 05:24:56 2012 From: vk.86.811 at gmail.com (vinod kumar) Date: Fri, 25 May 2012 12:24:56 +0300 Subject: [Divunal-author] HomeMatic - xmlrpc twisted !! Message-ID: Hi everyone, I'm trying to connect to homematic server at address '192.168.1.251' and port '2001'. I have a sample twisted server and client on my localhost. It's working fine. Now to the functions in server protocol.py file, I added another function (as shown below) which creates another client that connects to homematic server. But it's giving following error when I start the client. Error: File "/home/vinodh/Desktop/homematic/xmlrpc_twisted/protocol.py", line 45, in xmlrpc_init d = ClientCreator(reactor).connectTCP(self,'192.168.1.251',2001) exceptions.TypeError: __init__() takes at least 3 arguments (2 given)" my scenario is this way: mycleint ---> myserver(protocol file--->cliet-->homematic server) Please help me out. Thanks, Vinod -------------- next part -------------- An HTML attachment was scrubbed... URL: http://twistedmatrix.com/pipermail/divunal-author/attachments/20120525/dbaf2e1d/attachment.htm From glyph at twistedmatrix.com Fri May 25 16:35:16 2012 From: glyph at twistedmatrix.com (Glyph) Date: Fri, 25 May 2012 13:35:16 -0700 Subject: [Divunal-author] HomeMatic - xmlrpc twisted !! In-Reply-To: References: Message-ID: <43140DF8-3F68-481B-B439-CBA059CBBF5D@twistedmatrix.com> This list is about a video game (whose development is pretty well defunct) - how did you even find it? :) -glyph Le May 25, 2012 ? 2:24 AM, vinod kumar a ?crit : > Hi everyone, > > I'm trying to connect to homematic server at address '192.168.1.251' and port '2001'. I have a sample twisted server and client on my localhost. It's working fine. Now to the functions in server protocol.py file, I added another function (as shown below) which creates another client that connects to homematic server. But it's giving following error when I start the client. > Error: > File "/home/vinodh/Desktop/homematic/xmlrpc_twisted/protocol.py", line 45, in xmlrpc_init > d = ClientCreator(reactor).connectTCP(self,'192.168.1.251',2001) > exceptions.TypeError: __init__() takes at least 3 arguments (2 given)" > > my scenario is this way: > mycleint ---> myserver(protocol file--->cliet-->homematic server) > > Please help me out. > > Thanks, > Vinod > _______________________________________________ > Divunal-author mailing list > Divunal-author at twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/divunal-author