struct Sparoid::Message

Defined in:

message.cr

Constant Summary

VERSION = 1

Constructors

Instance Method Summary

Constructor Detail

def self.from_io(io : IO, format : IO::ByteFormat) : Message #

[View source]
def self.from_ip(ip : String) : Message #

[View source]
def self.new(ts : Int64, nounce : StaticArray(UInt8, 16), ip : Bytes) #

[View source]
def self.new(ip : Bytes) #

[View source]

Instance Method Detail

def family : Socket::Family #

[View source]
def ip : Bytes #

[View source]
def ip_string : String #

[View source]
def nounce : StaticArray(UInt8, 16) #

[View source]
def to_slice(format : IO::ByteFormat) : Bytes #

[View source]
def ts : Int64 #

[View source]