Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EAimTY/socks5-server
/ functions
Functions
109 in github.com/EAimTY/socks5-server
⨍
Functions
109
◇
Types & classes
34
↓ 8 callers
Method
write_to
(&self, w: &mut W)
socks5-proto/src/udp.rs:47
↓ 7 callers
Method
serialized_len
(&self)
socks5-proto/src/udp.rs:64
↓ 4 callers
Method
reply
Reply to the SOCKS5 client with the given reply and address. If encountered an error while writing the reply, the error alongside the original `TcpSt
socks5-server/src/connection/bind.rs:41
↓ 3 callers
Method
write_to_buf
(&self, buf: &mut B)
socks5-proto/src/udp.rs:58
↓ 2 callers
Method
close
(&mut self)
socks5-server/src/connection/mod.rs:118
↓ 1 callers
Method
accept
(&self)
socks5-server/src/lib.rs:79
↓ 1 callers
Method
as_handshake_method
(&self)
socks5-server/src/auth.rs:63
↓ 1 callers
Method
authenticate
Perform a SOCKS5 authentication handshake using the given [`Auth`](crate::Auth) adapter. If the handshake succeeds, an [`IncomingConnection<A, state:
socks5-server/src/connection/mod.rs:42
↓ 1 callers
Method
execute
(&self, _: &mut TcpStream)
socks5-server/src/auth.rs:67
↓ 1 callers
Function
handle
(conn: IncomingConnection<(), NeedAuthenticate>)
socks5-server/examples/simple_socks5.rs:32
↓ 1 callers
Method
serialized_len
(&self)
socks5-proto/src/request.rs:78
↓ 1 callers
Method
serialized_len
(&self)
socks5-proto/src/response.rs:78
↓ 1 callers
Method
serialized_len
(&self)
socks5-proto/src/handshake/request.rs:77
↓ 1 callers
Method
serialized_len
(&self)
socks5-proto/src/handshake/response.rs:59
↓ 1 callers
Method
serialized_len
(&self)
socks5-proto/src/handshake/password/request.rs:69
↓ 1 callers
Method
serialized_len
(&self)
socks5-proto/src/handshake/password/response.rs:74
↓ 1 callers
Method
wait
Waits the SOCKS5 client to send a request. This method will return a [`Command`] if the client sends a valid command. When encountering an error, th
socks5-server/src/connection/mod.rs:88
↓ 1 callers
Method
write_to_buf
(&self, buf: &mut B)
socks5-proto/src/request.rs:71
↓ 1 callers
Method
write_to_buf
(&self, buf: &mut B)
socks5-proto/src/response.rs:71
↓ 1 callers
Method
write_to_buf
(&self, buf: &mut B)
socks5-proto/src/handshake/request.rs:69
↓ 1 callers
Method
write_to_buf
(&self, buf: &mut B)
socks5-proto/src/handshake/response.rs:54
↓ 1 callers
Method
write_to_buf
(&self, buf: &mut B)
socks5-proto/src/handshake/password/request.rs:59
↓ 1 callers
Method
write_to_buf
(&self, buf: &mut B)
socks5-proto/src/handshake/password/response.rs:64
Method
close
(&mut self)
socks5-server/src/connection/associate.rs:81
Method
close
(&mut self)
socks5-server/src/connection/bind.rs:86
Method
close
(&mut self)
socks5-server/src/connection/connect.rs:64
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
socks5-server/src/lib.rs:129
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
socks5-server/src/connection/mod.rs:158
Method
fmt
(&self, f: &mut Formatter<'_>)
socks5-proto/src/address.rs:111
Method
from
(cmd: Command)
socks5-proto/src/command.rs:29
Method
from
(reply: Reply)
socks5-proto/src/reply.rs:47
Method
from
(err: ProtocolError)
socks5-proto/src/error.rs:47
Method
from
(value: u8)
socks5-proto/src/handshake/method.rs:13
Method
from
(err: Error)
socks5-proto/src/handshake/password/error.rs:18
Method
get_max_pkt_size
(&self)
socks5-server/src/connection/associate.rs:219
Method
get_mut
(&mut self)
socks5-server/src/lib.rs:116
Method
get_mut
(&mut self)
socks5-server/src/connection/associate.rs:109
Method
get_mut
(&mut self)
socks5-server/src/connection/mod.rs:146
Method
get_mut
(&mut self)
socks5-server/src/connection/bind.rs:114
Method
get_mut
(&mut self)
socks5-server/src/connection/connect.rs:92
Method
get_ref
(&self)
socks5-server/src/lib.rs:108
Method
get_ref
(&self)
socks5-server/src/connection/associate.rs:101
Method
get_ref
(&self)
socks5-server/src/connection/mod.rs:138
Method
get_ref
(&self)
socks5-server/src/connection/bind.rs:106
Method
get_ref
(&self)
socks5-server/src/connection/connect.rs:84
Method
into_inner
(self)
socks5-server/src/lib.rs:122
Method
into_inner
(self)
socks5-server/src/connection/associate.rs:115
Method
into_inner
(self)
socks5-server/src/connection/mod.rs:152
Method
into_inner
(self)
socks5-server/src/connection/bind.rs:120
Method
into_inner
(self)
socks5-server/src/connection/connect.rs:98
Method
local_addr
(&self)
socks5-server/src/lib.rs:100
Method
local_addr
(&self)
socks5-server/src/connection/associate.rs:87
Method
local_addr
(&self)
socks5-server/src/connection/mod.rs:124
Method
local_addr
(&self)
socks5-server/src/connection/bind.rs:92
Method
local_addr
(&self)
socks5-server/src/connection/connect.rs:70
Function
main
()
socks5-server/examples/simple_socks5.rs:14
Method
new
(listener: TcpListener, auth: AuthAdaptor<A>)
socks5-server/src/lib.rs:71
Method
new
()
socks5-server/src/auth.rs:54
Method
new
(stream: TcpStream)
socks5-server/src/connection/associate.rs:72
Method
new
(stream: TcpStream, auth: AuthAdaptor<A>)
socks5-server/src/connection/mod.rs:108
Method
new
(stream: TcpStream)
socks5-server/src/connection/bind.rs:77
Method
new
(stream: TcpStream)
socks5-server/src/connection/connect.rs:55
Method
new
(frag: u8, address: Address)
socks5-proto/src/udp.rs:22
Method
new
(command: Command, address: Address)
socks5-proto/src/request.rs:22
Method
new
(reply: Reply, address: Address)
socks5-proto/src/response.rs:22
Method
new
(methods: Vec<Method>)
socks5-proto/src/handshake/request.rs:25
Method
new
(method: Method)
socks5-proto/src/handshake/response.rs:22
Method
new
(username: Vec<u8>, password: Vec<u8>)
socks5-proto/src/handshake/password/request.rs:23
Method
new
(status: bool)
socks5-proto/src/handshake/password/response.rs:25
Method
peer_addr
(&self)
socks5-server/src/connection/associate.rs:93
Method
peer_addr
(&self)
socks5-server/src/connection/mod.rs:130
Method
peer_addr
(&self)
socks5-server/src/connection/bind.rs:98
Method
peer_addr
(&self)
socks5-server/src/connection/connect.rs:76
Method
poll_accept
(&self, cx: &mut Context<'_>)
socks5-server/src/lib.rs:90
Method
poll_flush
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
socks5-server/src/connection/bind.rs:147
Method
poll_flush
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
socks5-server/src/connection/connect.rs:125
Method
poll_read
( mut self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, )
socks5-server/src/connection/bind.rs:127
Method
poll_read
( mut self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, )
socks5-server/src/connection/connect.rs:105
Method
poll_shutdown
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
socks5-server/src/connection/bind.rs:152
Method
poll_shutdown
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
socks5-server/src/connection/connect.rs:130
Method
poll_write
( mut self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], )
socks5-server/src/connection/bind.rs:138
Method
poll_write
( mut self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], )
socks5-server/src/connection/connect.rs:116
Method
read_from
(r: &mut R)
socks5-proto/src/udp.rs:26
Method
read_from
(r: &mut R)
socks5-proto/src/request.rs:26
Method
read_from
(stream: &mut R)
socks5-proto/src/address.rs:23
Method
read_from
(r: &mut R)
socks5-proto/src/response.rs:26
Method
read_from
(r: &mut R)
socks5-proto/src/handshake/request.rs:29
Method
read_from
(r: &mut R)
socks5-proto/src/handshake/response.rs:26
Method
read_from
(r: &mut R)
socks5-proto/src/handshake/password/request.rs:27
Method
read_from
(r: &mut R)
socks5-proto/src/handshake/password/response.rs:29
Method
recv
Receives a SOCKS5 UDP packet on the socket from the remote address which it is connected. On success, it returns the packet payload and the SOCKS5 UD
socks5-server/src/connection/associate.rs:141
Method
recv_from
Receives a SOCKS5 UDP packet on the socket from a remote address. On success, it returns the packet payload, the SOCKS5 UDP header and the source add
socks5-server/src/connection/associate.rs:165
Method
reply
Reply to the SOCKS5 client with the given reply and address. If encountered an error while writing the reply, the error alongside the original `TcpSt
socks5-server/src/connection/associate.rs:40
Method
reply
Reply to the SOCKS5 client with the given reply and address. If encountered an error while writing the reply, the error alongside the original `TcpSt
socks5-server/src/connection/connect.rs:38
Method
send
Sends a UDP packet to the remote address which it is connected. The SOCKS5 UDP header will be added to the packet.
socks5-server/src/connection/associate.rs:189
Method
send_to
Sends a UDP packet to a specified remote address. The SOCKS5 UDP header will be added to the packet.
socks5-server/src/connection/associate.rs:201
Method
serialized_len
(&self)
socks5-proto/src/address.rs:101
Method
set_max_pkt_size
(&self, size: usize)
socks5-server/src/connection/associate.rs:225
Method
try_from
(code: u8)
socks5-proto/src/command.rs:18
Method
try_from
(code: u8)
socks5-proto/src/reply.rs:30
next →
1–100 of 109, ranked by callers