class
Sparoid::Client
- Sparoid::Client
- Reference
- Object
Defined in:
client.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Class Method Summary
- .fdpass(ips, port) : NoReturn
- .generate_package(key, hmac_key, message : Message) : Bytes
- .keygen
-
.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).
- .send(key : String, hmac_key : String, host : String, port : Int32, public_ip : String | Nil = nil) : Array(String)
Instance Method Summary
Constructor Detail
Class Method Detail
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.
def self.send(key : String, hmac_key : String, host : String, port : Int32, public_ip : String | Nil = nil) : Array(String)
#