Previous topic

caps

Next topic

data_packer

This Page

circuit

class pyogp.lib.base.message.circuit.CircuitManager

Manages a collection of circuits and provides some higher-level functionality to do so.

add_circuit(host, packet_in_id)
get_circuit(host)
get_unacked_circuits()
is_circuit_alive(host)
remove_circuit_data(host)
class pyogp.lib.base.message.circuit.PackFlags
class pyogp.lib.base.message.circuit.Host(context)
is_ok()
set_host_by_name(hostname)
class pyogp.lib.base.message.circuit.Circuit(host, pack_in_id)

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)