class Pipe::Handle

Defined in:

pipe/handle.cr

Constant Summary

BUFFER_LINE_SEPARATOR = '\n'.ord
BUFFER_SIZE = 20000
CLIENTS_CONNECTED = RWLock.new
CONNECTED_BANNER = "CONNECTED <Caster v#{Caster::VERSION}>"
LINE_END_GAP = 1
LINE_FEED = "\r\n"
MAX_LINE_SIZE = (BUFFER_SIZE + LINE_END_GAP) + 1
PROTOCOL_REVISION = 1
TCP_TIMEOUT_NON_ESTABLISHED = 10

Class Method Summary

Class Method Detail

def self.client(stream, run_loop = true) #

[View source]
def self.configure_stream(stream, is_established : Bool) #

[View source]
def self.ensure_start(stream) #

[View source]
def self.handle_stream(mode, stream, max_line_size = MAX_LINE_SIZE, run_loop = true) #

[View source]
def self.total_clients #

[View source]