class

Socksify::TCPSOCKSSocket

Inherits TCPSocket < IPSocket < Socket < Crystal::System::Socket < IO::Buffered < IO < Reference < Object

Class methods

socks_ignores
Source
socks_ignores=(socks_ignores : Array(String))
Source
socks_password
Source
socks_password=(socks_password : String | Nil)
Source
socks_port
Source
socks_port=(socks_port : Int32 | Nil)
Source
socks_server
Source
socks_server=(socks_server : String | Nil)
Source
socks_username
Source
socks_username=(socks_username : String | Nil)
Source
socks_version
Source

Instance methods

http_connect(host : String, port : Int32, auth : NamedTuple(username: String, password: String) | Nil = nil)
Source
receive(message : Bytes) : String

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)
Source
send(message : Array(String))
Source
socks_authenticate

Authentication

Source
socks_connect(host : String, port : Int)

Connect

Source
write(str : Array(String))
Source