class Sparoid::Server

Defined in:

server.cr

Constant Summary

MAX_NOUNCES = 65536
MAX_TIMESTAMP_DIFF = 5000
SHA256_EVP = OpenSSL::Algorithm::SHA256.to_evp

Constructors

Instance Method Summary

Constructor Detail

def self.new(keys : Enumerable(String), hmac_keys : Enumerable(String), on_accept : Proc(String, Nil)) #

[View source]

Instance Method Detail

def bind(host, port) #

[View source]
def close #

[View source]
def listen #

[View source]
def process_packet(packet : Bytes, count : Int) : String #

[View source]