class

Sparoid::Client

Inherits Reference / Object

Constants

Log = ::Log.for(self)

Constructors

new(key : String, hmac_key : String)
Source
new(config_path = "~/.sparoid.ini")
Source

Class methods

fdpass(ips, port) : NoReturn
Source
generate_package(key, hmac_key, message : Message) : Bytes
Source
keygen
Source
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.

Source
send(key : String, hmac_key : String, host : String, port : Int32, public_ip : String | Nil = nil) : Array(String)
Source

Instance methods

send(host : String, port : Int32)
Source

Nested types