class Sparoid::Client

Defined in:

client.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(key : String, hmac_key : String) #

[View source]
def self.new(config_path = "~/.sparoid.ini") #

[View source]

Class Method Detail

def self.fdpass(ips, port) : NoReturn #

[View source]
def self.generate_package(key, hmac_key, message : Message) : Bytes #

[View source]
def self.keygen #

[View source]
def self.process_send_results(host : String, results : Array(Tuple(Socket::IPAddress, Exception | Nil))) : Array(Tuple(Socket::IPAddress, Exception)) #

Decide whether per-address send failures are partial (warn) or total (raise). Returns the per-address errors to warn about. Raises SendError when every send failed.


[View source]
def self.send(key : String, hmac_key : String, host : String, port : Int32, public_ip : String | Nil = nil) : Array(String) #

[View source]

Instance Method Detail

def send(host : String, port : Int32) #

[View source]