Baby.Protocol (Baby v0.34.0)

View Source

Protocol implementation

Summary

Functions

A map of the protocol definitions

Handle inbound data of the provided message type based on the supplied connection state

A dual-way map between message types and semantic protocol atoms

Craft and enqueue an outbound messagei or the provided type from the current connection state

Functions

definition()

A map of the protocol definitions

inbound(data, conn_info, message_type)

Handle inbound data of the provided message type based on the supplied connection state

msglookup(val)

A dual-way map between message types and semantic protocol atoms

outbound(conn_info, message_type)

Craft and enqueue an outbound messagei or the provided type from the current connection state

presort(wants, arg)

unpack_nonce_box(arg, conn_info)