Пример #1
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)
Пример #2
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)
Пример #3
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)