class SOCKS::Server

Defined in:

socks/server.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : Socket::Server, dnsResolver : DNS::Resolver | Nil, options : Options = Options.new) #

[View source]

Instance Method Detail

def accept? : Session | Nil #

[View source]
def associate_udp_timeout #

[View source]
def associate_udp_timeout=(value : TimeOut) #

[View source]
def authentication #

[View source]
def authentication=(value : Frames::AuthenticationFlag) #

[View source]
def client_timeout #

[View source]
def client_timeout=(value : TimeOut) #

[View source]
def dnsResolver : DNS::Resolver | Nil #

[View source]
def establish!(session : Session, start_immediately : Bool = true, sync_create_outbound_socket : Bool = true) : Tuple(Frames::Establish, Frames::CommandFlag, Address | Socket::IPAddress) #

[View source]
def establish!(session : Session, from_establish : Frames::Establish, sync_create_outbound_socket : Bool = true) : Bool #

[View source]
def handshake!(session : Session) : Bool #

[View source]
def io : Socket::Server #

[View source]
def local_address : Socket::Address | Nil #

[View source]
def on_auth : String?, String? -> SOCKS::Frames::PermissionFlag? #

[View source]
def on_auth=(value : Proc(String | Nil, String | Nil, Frames::PermissionFlag)) #

[View source]
def on_wrapper_auth : String?, String? -> SOCKS::Frames::PermissionFlag? #

[View source]
def on_wrapper_auth=(value : Proc(String | Nil, String | Nil, Frames::PermissionFlag)) #

[View source]
def options : Options #

[View source]
def remote_address : Socket::Address | Nil #

[View source]
def send_establish_frame(session : Session, status_flag : Frames::StatusFlag, destination_ip_address : Nil) : Bool #

[View source]
def tcp_binding_timeout #

[View source]
def tcp_binding_timeout=(value : TimeOut) #

[View source]
def tcp_outbound_timeout #

[View source]
def tcp_outbound_timeout=(value : TimeOut) #

[View source]
def udp_outbound_timeout #

[View source]
def udp_outbound_timeout=(value : TimeOut) #

[View source]
def version #

[View source]
def version=(value : Frames::VersionFlag) #

[View source]
def wrapper_authorization : SOCKS::Frames::WebSocketAuthorizationFlag? #

[View source]
def wrapper_authorization=(value : Frames::WebSocketAuthorizationFlag) #

[View source]