Exemplo n.º 1
0
 def doSendWazap(self, *args, **kwargs):
     """
     Action method.
     """
     from transport.tcp import tcp_node
     payload = strng.to_bin(tcp_node.my_idurl() or 'None')
     self.sendData(CMD_WAZAP, payload)
Exemplo n.º 2
0
 def doSendWazap(self, arg):
     """
     Action method.
     """
     from transport.tcp import tcp_node
     payload = tcp_node.my_idurl() or 'None'
     self.sendData(CMD_WAZAP, payload)
Exemplo n.º 3
0
    def doSendWazap(self, arg):
        """
        Action method.
        """
        from transport.tcp import tcp_node

        payload = tcp_node.my_idurl() or "None"
        self.sendData(CMD_WAZAP, payload)
Exemplo n.º 4
0
 def doSendHello(self, arg):
     """
     Action method.
     """
     from transport.tcp import tcp_node
     host = tcp_node.my_host() or '127.0.0.1:7771'
     idurl = tcp_node.my_idurl() or 'None'
     payload = host + ' ' + idurl
     self.sendData(CMD_HELLO, payload)
Exemplo n.º 5
0
    def doSendHello(self, arg):
        """
        Action method.
        """
        from transport.tcp import tcp_node

        host = tcp_node.my_host() or "127.0.0.1:7771"
        idurl = tcp_node.my_idurl() or "None"
        payload = host + " " + idurl
        self.sendData(CMD_HELLO, payload)
Exemplo n.º 6
0
 def doSendHello(self, *args, **kwargs):
     """
     Action method.
     """
     from transport.tcp import tcp_node
     host = strng.to_bin(tcp_node.my_host() or '127.0.0.1:7771')
     idurl = strng.to_bin(tcp_node.my_idurl() or 'None')
     payload = host + b' ' + idurl
     if _Debug:
         lg.out(_DebugLevel, 'tcp_connection.doSendHello %r to %s' % (payload, net_misc.pack_address(self.getTransportAddress())))
     self.sendData(CMD_HELLO, payload)