[Twisted-Python] How to Control Twisted Program through CLI

Hi experts, I have one twisted program, and it used to connected some servers through reactor.connectTCP(), And now, when the program is running, I want to add another connection or disconnect one connection already has through reactor.connectTCP(), how can I do that? Best Regards, Xiao Peng(肖鹏)

On Feb 7, 2012, at 9:04 PM, Peng Xiao -X (penxiao - Digital China at Cisco) wrote:
Call reactor.connectTCP() again to make a new connection. This works at any time, not just before the reactor is run. Call self.transport.loseConnection() to terminate a connection from within a Protocol class. -glyph

On Feb 7, 2012, at 9:04 PM, Peng Xiao -X (penxiao - Digital China at Cisco) wrote:
Call reactor.connectTCP() again to make a new connection. This works at any time, not just before the reactor is run. Call self.transport.loseConnection() to terminate a connection from within a Protocol class. -glyph
participants (2)
-
Glyph
-
Peng Xiao -X (penxiao - Digital China at Cisco)