Elixium Core v0.5.0 Elixium.P2P.GhostProtocol.Message View Source
Create and read messages that are sent over TCP
Link to this section Summary
Functions
Create an unencrypted message that will be passed to a peer, with the contents of message_map
Same as build/2 except the message is encrypted
Read a full unencrypted message from the socket
Validate & decrypt a packet. A packet can contain more than one message
A wrapper function for :gen_tcp.send. Should probably update the typespec to be more accurate with the return value if theres an error
Link to this section Functions
Create an unencrypted message that will be passed to a peer, with the contents of message_map
Same as build/2 except the message is encrypted
Read a full unencrypted message from the socket
Validate & decrypt a packet. A packet can contain more than one message
A wrapper function for :gen_tcp.send. Should probably update the typespec to be more accurate with the return value if theres an error.