class EncryptedTcp::Connection

Defined in:

client/connection.cr

Constant Summary

DEBUG_WATCHFILE = ENV["DEBUG_WATCHFILE"]? || "/tmp/debug"
ETCP_HEARTBEAT = (ENV["ETCP_HEARTBEAT"]? || "15").to_i
LOCAL_TCP_IDLE = (ENV["TCP_KEEPALIVE_IDLE"]? || "10").to_i
LOCAL_TCP_KEEPALIVE = (ENV["TCP_KEEPALIVE"]? || "100").to_i
LOCAL_TCP_KEEPALIVE_COUNT = (ENV["TCP_KEEPALIVE_COUNT"]? || "10").to_i
LOCAL_TCP_NODELAY = ENV["TCP_NODELAY"]? || "true"

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, port : String, client_secret_key : String, client_public_key : String, server_public_key : String) #

[View source]

Instance Method Detail

def alive? #

[View source]
def build_tcp_connection #

[View source]
def close #

[View source]
def mutex : Mutex #

[View source]
def once_alive? #

[View source]
def ping? #

[View source]
def raw_send(send_data) #

[View source]
def send(data) #

[View source]