Beispiel #1
0
    def ack(self, packet):

        ack = Packet(80, packet.num_seq, 0, None)
        self.transport.write(ack.pack())
        user_name = 'unknown'
        if self.user_name is not None:
            user_name = self.user_name
        print('ACK', packet.num_seq, user_name)
    def ack(self, packet):

        ack = Packet(80, packet.num_seq, 0, None)
        self.transport.write(ack.pack())
        print("ack de", packet)
    def ack(self, packet, host_port):

        ack = Packet(80, packet.numSeq, 0, None)
        self.transport.write(ack.pack(), host_port)
    def ack(self, packet, host_port):

        ack = Packet(80, packet.num_seq, 0, None)
        self.transport.write(ack.pack(), host_port)
        print('ACKACKACK')