Sparoid::Client
Inherits Reference / Object
Constants
Log = ::Log.for(self)
Constructors
new(key : String, hmac_key : String)
Sourcenew(config_path = "~/.sparoid.ini")
SourceClass methods
fdpass(ips, port) : NoReturn
Sourcegenerate_package(key, hmac_key, message : Message) : Bytes
Sourcekeygen
Sourceprocess_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.
send(key : String, hmac_key : String, host : String, port : Int32, public_ip : String | Nil = nil) : Array(String)
SourceInstance methods
send(host : String, port : Int32)
Source