[Twisted-Python] Problem with additional connection
Hi, all I'm writing a client program with Twisted. The client will first connect one server, and based on the data received in the function of dataReceived, the client need to connect other servers. I just tried to call reactor.connectTCP(another_host, another_port, another_factory) one more time, but there's an exception. Is the twisted allowed to that? Or is there some rules should be followed to achieve that? Best, Hanks
On 03/28/2012 03:52 PM, hz hanks wrote:
Hi, all
I'm writing a client program with Twisted. The client will first connect one server, and based on the data received in the function of dataReceived, the client need to connect other servers. I just tried to call reactor.connectTCP(another_host, another_port, another_factory) one more time, but there's an exception. Is the twisted allowed to that? Or is there some rules should be followed to achieve that? What's the exception?
On 28 Mar, 07:52 pm, hankshz@gmail.com wrote:
Hi, all
I'm writing a client program with Twisted. The client will first connect one server, and based on the data received in the function of dataReceived, the client need to connect other servers. I just tried to call reactor.connectTCP(another_host, another_port, another_factory) one more time, but there's an exception. Is the twisted allowed to that? Or is there some rules should be followed to achieve that?
Hi, Your question is incomplete, and cannot be answered in any useful way. Please take a look at http://sscce.org/ for some tips about asking good questions. Thanks, Jean-Paul
participants (3)
-
exarkun@twistedmatrix.com
-
hz hanks
-
Itamar Turner-Trauring