how to spawn multiple ssh requests in a twisted server? -
from twisted ssh example docs: http://twistedmatrix.com/documents/current/conch/examples/sshsimpleclient.py,
we learn twisted need reactor spawn ssh request:
protocol.clientcreator(reactor, simpletransport).connecttcp(host, 22) reactor.run()
and want know how can spawn ssh request in twisted server ? there reactor in twisted server.
you may review examples how use http://twistedmatrix.com/documents/current/conch/examples/
reactor embedded twisted , called reactor.run() need write callbacks handling connection results.
Comments
Post a Comment