abstract class Socks::Socks

Direct Known Subclasses

Defined in:

nghttp/transports/socks/socks.cr

Constructors

Instance Method Summary

Instance methods inherited from class IO

pack(spec, *a) pack, reunpack(src, dst, *vars) reunpack, unpack(spec) unpack

Constructor Detail

def self.new(host : String, port : Int32, username : Nil | String = nil, password : Nil | String = nil, anonymous_username : Nil | String = "user") #

[View source]

Instance Method Detail

def close(*args, **options) #

[View source]
def close(*args, **options, &) #

[View source]
def closed?(*args, **options) #

[View source]
def closed?(*args, **options, &) #

[View source]
abstract def connect(host : String, port : Int) #

[View source]
def connect_socks #

[View source]
def flush(*args, **options) #

[View source]
def flush(*args, **options, &) #

[View source]
def peek(*args, **options) #

[View source]
def peek(*args, **options, &) #

[View source]
def read(*args, **options) #

[View source]
def read(*args, **options, &) #

[View source]
def rewind(*args, **options) #

[View source]
def rewind(*args, **options, &) #

[View source]
def socks #

[View source]
def socks? : TCPSocket? #

[View source]
def socks_host : String #

[View source]
def socks_port : Int32 #

[View source]
def tty?(*args, **options) #

[View source]
def tty?(*args, **options, &) #

[View source]
def write(data : Bytes) : Nil #
Description copied from class IO

Writes the contents of slice into this IO.

io = IO::Memory.new
slice = Bytes.new(4) { |i| ('a'.ord + i).to_u8 }
io.write(slice)
io.to_s # => "abcd"

[View source]