This is used to keep track of a given circuit. It keeps statistics
as well as circuit information.
-
ack_reliable_packet(packet_id)
-
add_reliable_packet(packet)
- add a packet that we want to be acked
(want an incoming ack)
-
collect_ack(packet_id)
- set a packet_id that this circuit needs to eventually ack
(need to send ack out)
-
handle_packet(packet)
-
next_packet_id()
-
prepare_packet(packet, flag=0, retries=0)