class Transfer

Defined in:

socks/extra/transfer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : IO, destination : IO, finishCallback : Proc(Transfer, UInt64, UInt64, Nil) | Nil = nil, heartbeatCallback : Proc(Transfer, Time::Span, Bool) | Nil = nil) #

[View source]

Instance Method Detail

def aliveInterval : Time::Span #

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

[View source]
def any_done? : Bool #

[View source]
def check_exceed_threshold?(any_side_bytes_exceed : Bool) : Bool #

[View source]
def cleanup(sd_flag : SDFlag, reset : Bool = true) #

[View source]
def cleanup #

[View source]
def concurrentFibers : Set(Fiber) #

[View source]
def concurrentMutex : Mutex #

[View source]
def destination : IO #

[View source]
def destination=(destination : IO) #

[View source]
def exceedThresholdFlag : Atomic(ExceedThresholdFlag) #

[View source]
def exceedThresholdFlag=(exceedThresholdFlag : Atomic(ExceedThresholdFlag)) #

[View source]
def finishCallback : Proc(Transfer, UInt64, UInt64, Nil) | Nil #

[View source]
def finishCallback=(finishCallback : Proc(Transfer, UInt64, UInt64, Nil) | Nil) #

[View source]
def finished? #

[View source]
def first_alive_time : Time #

[View source]
def firstAliveTime : Atomic(Int64) #

[View source]
def get_monitor_receive_state(all : Bool = false) : Hash(Int64, UInt64) | Nil #

[View source]
def get_monitor_sent_state(all : Bool = false) : Hash(Int64, UInt64) | Nil #

[View source]
def heartbeat_counter : Atomic(UInt64) #

[View source]
def heartbeatCallback : Proc(Transfer, Time::Span, Bool) | Nil #

[View source]
def heartbeatCallback=(heartbeatCallback : Proc(Transfer, Time::Span, Bool) | Nil) #

[View source]
def heartbeatCounter : Atomic(UInt64) #

[View source]
def heartbeatInterval : Time::Span #

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

[View source]
def last_alive_time : Time #

[View source]
def lastAliveTime : Atomic(Int64) #

[View source]
def monitor : Atomic(Int8) #

[View source]
def monitor? : Bool #

[View source]
def monitorCapacity : Atomic(Int8) #

[View source]
def monitorState : Hash(SRFlag, Hash(Int64, UInt64)) | Nil #

[View source]
def mutex : Mutex #

[View source]
def perform #

[View source]
def receive_done? : Bool #

[View source]
def receive_exception=(value : Exception | Nil) #

[View source]
def receive_exception? : Exception | Nil #

[View source]
def receivedBytes : Atomic(UInt64) #

[View source]
def receiveDone : Atomic(Int8) #

[View source]
def reset_monitor_state : Bool #

[View source]
def reset_settings!(reset_socket_switch_seconds : Bool = true, reset_socket_switch_bytes : Bool = true, reset_socket_switch_expression : Bool = true) : Bool #

[View source]
def reset_socket(sd_flag : SDFlag) #

[View source]
def reset_socket #

[View source]
def sent_done? : Bool #

[View source]
def sent_exception=(value : Exception | Nil) #

[View source]
def sent_exception? : Exception | Nil #

[View source]
def sentBytes : Atomic(UInt64) #

[View source]
def sentDone : Atomic(Int8) #

[View source]
def socketSwitchBytes : Atomic(UInt64) #

[View source]
def socketSwitchBytes=(socketSwitchBytes : Atomic(UInt64)) #

[View source]
def socketSwitchExpression : Atomic(SocketSwitchExpressionFlag) #

[View source]
def socketSwitchExpression=(socketSwitchExpression : Atomic(SocketSwitchExpressionFlag)) #

[View source]
def socketSwitchSeconds : Atomic(UInt64) #

[View source]
def socketSwitchSeconds=(socketSwitchSeconds : Atomic(UInt64)) #

[View source]
def source : IO #

[View source]
def source=(source : IO) #

[View source]
def strict_check_receive_exceed_threshold? : Bool #

[View source]
def strict_check_sent_exceed_threshold? : Bool #

[View source]