crash.software
Projects
Pull Requests
Issues
Builds
tun2socks
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
tun2socks
Files
🤬
Sign In
3cbbf306
ROOT
/
transport
/
socks5
/
socks5.go
Search
History
394 lines
|
ISO-8859-1
|
9 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Version
Command
String
()
:
string
CmdConnect
:
Command
CmdBind
:
Command
CmdUDPAssociate
:
Command
Atyp
AtypIPv4
:
Atyp
AtypDomainName
:
Atyp
AtypIPv6
:
Atyp
Reply
String
()
:
string
MaxAddrLen
MaxAuthLen
Addr
Valid
()
:
bool
String
()
:
string
UDPAddr
()
:
*net.UDPAddr
User
Username
:
string
Password
:
string
ClientHandshake
(rw io.ReadWriter, addr Addr, command Command, user *User)
:
(Addr, error)
ReadAddr
(r io.Reader, b []byte)
:
(Addr, error)
SplitAddr
(b []byte)
:
Addr
SerializeAddr
(domainName string, dstIP net.IP, dstPort uint16)
:
Addr
ParseAddr
(addr net.Addr)
:
Addr
ParseAddrString
(s string)
:
Addr
DecodeUDPPacket
(packet []byte)
:
(addr Addr, payload []byte, err error)
EncodeUDPPacket
(addr Addr, payload []byte)
:
(packet []byte, err error)
All occurrences
Please wait...
Page is in error, reload to recover