module Sox

Defined in:

connection_request.cr
sox.cr
sox/client.cr
sox/server.cr
sox/udp.cr

Constant Summary

BLANK_BYTE = 0_u8
MARK_BYTE = 255_u8
RESERVED = BLANK_BYTE
V4 = 4_u8
V5 = 5_u8

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(host : String, port : Int = 80, proxy_host : String = "127.0.0.1", proxy_port : Int = 1080, command : COMMAND = COMMAND::CONNECT, reuse_port : Bool = false) #

[View source]

Class Method Detail

def self.client(*args) #

[View source]
def self.server(*args) #

[View source]
def self.udp(*args) #

[View source]

Instance Method Detail

def receive(message : Bytes) : Tuple(Int32, IPAddress) #

[View source]
def receive(max_message_size = 512) : Tuple(String, IPAddress) #

[View source]
def tcp? #

[View source]
def udp? #

[View source]