def __init__(self, address, port): self.retransmission_queue = RetransmissionQueue(self) self.retransmission_attempts = dict() self.outgoing_buffer = DataBuffer() self.state = CLOSED self.control_block = ClientControlBlock(address, port) self.socket = Soquete(address, port) self.packet_builder = PacketBuilder(self)
def __init__(self, address, port): self.state = CLOSED self.control_block = ServerControlBlock(address, port) self.socket = Soquete(address, port) self.packet_builder = PacketBuilder(self) self.connection_closed_event = threading.Event()