epmd.epmd_proto¶
One client connection of the server.
- class epmd.epmd_proto.EpmdProtocol(parent)¶
Bases:
ProtocolOne client connection of the EPMD server.
As in OTP’s epmd, a connection carries exactly one request. It is closed after the reply, except after a successful ALIVE2_REQ: then it stays open, and the node is unregistered when it closes or sends anything more. Malformed requests close the connection without a reply.
- EPMD_ALIVE2_REQ = 120¶
- EPMD_PORT2_REQ = 122¶
- EPMD_PORT_PLEASE2_REQ = 122¶
- EPMD_NAMES_REQ = 110¶
- EPMD_KILL_REQ = 107¶
- EPMD_DUMP_REQ = 100¶
- EPMD_STOP_REQ = 115¶
- ALIVE_NORMAL_NODE_TYPE = 77¶
- ALIVE_HIDDEN_NODE_TYPE = 72¶
- parent: epmd_server.Epmd¶
- transport: asyncio.Transport¶
- addr: Any¶
- timer_: asyncio.TimerHandle | None¶
- connection_lost(exc)¶
The client closed the connection: a node registered on it is unregistered.
- connection_made(transport)¶
Connection has been accepted and established (callback).
- data_received(data)¶
Collect the client’s bytes; answer once the one request of the connection is complete.
- on_packet(packet)¶
Answer one request body (without the length prefix).
- Raises:
EpmdRequestError – the request is malformed.