dist.out_dist_protocol module

The module implements outgoing TCP distribution connection (i.e. initiated by our node to another node with the help of EPMD).

class pyrlang.dist.out_dist_protocol.OutDistProtocol(node_name: str, engine: pyrlang.async_support.base_engine.BaseEngine)

Bases: pyrlang.dist.base_dist_protocol.BaseDistProtocol

Handles outgoing connections from our to other nodes.

on_connected(host_port)

Handler invoked from the recv loop (in util.make_handler_in) when the connection has been accepted and established.

on_packet(data) → bool

Handle incoming distribution packet

Parameters:data -- The packet after the header had been removed
on_packet_alive(data)
on_packet_recvchallenge(data)
on_packet_recvchallenge_ack(data)
on_packet_recvstatus(data)