def openShell(self, trans): ap = AgentProtocol() ap.makeConnection(trans) trans.makeConnection(session.wrapProtocol(ap))
def execCommand(self, proto, cmd): ap = AgentProtocol() ap.makeConnection(proto) proto.makeConnection(session.wrapProtocol(ap))