示例#1
0
 def commandReceived(self, command, argument):
     
     Telnet.commandReceived(self, command, argument)
     if argument==GMCP and command == WILL and self.factory.realm.gmcp_handler:
         for msg in self.factory.realm.gmcp_handler.handshakeMessages():
             self.requestNegotiation(GMCP, msg)
示例#2
0
    def commandReceived(self, command, argument):

        Telnet.commandReceived(self, command, argument)
        if argument == GMCP and command == WILL:
            for msg in self.factory.gmcp_handshakes:
                self.requestNegotiation(GMCP, msg)