class Transport

Defined in:

wrench/transport.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : IO, destination : IO, callback : Proc(Int64, Int64, Nil) | Nil = nil, heartbeat : Proc(Nil) | Nil = nil) #

[View source]

Instance Method Detail

def add_worker_fiber(fiber : Fiber) #

[View source]
def alive_interval #

[View source]
def alive_interval=(value : Time::Span) #

[View source]
def callback : Proc(Int64, Int64, Nil) | Nil #

[View source]
def cleanup_all #

[View source]
def cleanup_side(side : Side, free_tls : Bool) #

[View source]
def destination : IO #

[View source]
def destination_tls_context : OpenSSL::SSL::Context::Client? #

[View source]
def destination_tls_context=(value : OpenSSL::SSL::Context::Client) #

[View source]
def destination_tls_socket : OpenSSL::SSL::Socket::Client? #

[View source]
def destination_tls_socket=(value : OpenSSL::SSL::Socket::Client) #

[View source]
def extra_received_size #

[View source]
def extra_received_size=(value : Int32 | Int64) #

[View source]
def extra_sent_size #

[View source]
def extra_sent_size=(value : Int32 | Int64) #

[View source]
def finished? #

[View source]
def free_destination_tls #

[View source]
def free_source_tls #

[View source]
def heartbeat : Proc(Nil) | Nil #

[View source]
def heartbeat_interval #

[View source]
def heartbeat_interval=(value : Time::Span) #

[View source]
def mutex : Mutex #

[View source]
def perform #

[View source]
def received_size #

[View source]
def reliable : Reliable #

[View source]
def reliable=(reliable : Reliable) #

[View source]
def reliable_status(reliable : Reliable = self.reliable) #

[View source]
def sent_size #

[View source]
def source : IO #

[View source]
def source_tls_context : OpenSSL::SSL::Context::Server? #

[View source]
def source_tls_context=(value : OpenSSL::SSL::Context::Server) #

[View source]
def source_tls_socket : OpenSSL::SSL::Socket::Server? #

[View source]
def source_tls_socket=(value : OpenSSL::SSL::Socket::Server) #

[View source]
def update_latest_alive #

[View source]
def workerFibers : Array(Fiber) #

[View source]