class Socksify::TCPSOCKSSocket

Defined in:

lib/tcp_socks_socket.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.socks_ignores : Array(String) #

[View source]
def self.socks_ignores=(socks_ignores : Array(String)) #

[View source]
def self.socks_password : String | Nil #

[View source]
def self.socks_password=(socks_password : String | Nil) #

[View source]
def self.socks_port : Int32 | Nil #

[View source]
def self.socks_port=(socks_port : Int32 | Nil) #

[View source]
def self.socks_server : String | Nil #

[View source]
def self.socks_server=(socks_server : String | Nil) #

[View source]
def self.socks_username : String | Nil #

[View source]
def self.socks_username=(socks_username : String | Nil) #

[View source]
def self.socks_version : String #

[View source]

Instance Method Detail

def http_connect(host : String, port : Int32, auth : NamedTuple(username: String, password: String) | Nil = nil) #

[View source]
def receive(message : Bytes) : String #
Description copied from class Socket

Receives a binary message from the previously bound address.

require "socket"

server = Socket.udp(Socket::Family::INET)
server.bind("localhost", 1234)

message = Bytes.new(32)
bytes_read, client_addr = server.receive(message)

[View source]
def send(message : Array(String)) #

[View source]
def socks_authenticate #

Authentication


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

Connect


[View source]
def write(str : Array(String)) #

[View source]