class Socksify::TCPSOCKSSocket
- Socksify::TCPSOCKSSocket
- TCPSocket
- IPSocket
- Socket
- IO
- Reference
- Object
Defined in:
lib/tcp_socks_socket.crClass Method Summary
- .socks_ignores : Array(String)
- .socks_ignores=(socks_ignores : Array(String))
- .socks_password : String | Nil
- .socks_password=(socks_password : String | Nil)
- .socks_port : Int32 | Nil
- .socks_port=(socks_port : Int32 | Nil)
- .socks_server : String | Nil
- .socks_server=(socks_server : String | Nil)
- .socks_username : String | Nil
- .socks_username=(socks_username : String | Nil)
- .socks_version : String
Instance Method Summary
- #http_connect(host : String, port : Int32, auth : NamedTuple(username: String, password: String) | Nil = nil)
-
#receive(message : Bytes) : String
Receives a binary message from the previously bound address.
- #send(message : Array(String))
-
#socks_authenticate
Authentication
-
#socks_connect(host : String, port : Int)
Connect
- #write(str : Array(String))
Class Method Detail
Instance Method Detail
def http_connect(host : String, port : Int32, auth : NamedTuple(username: String, password: String) | Nil = nil)
#
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)