crash.software
Projects
Pull Requests
Issues
Builds
sing-box
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
sing-box
Files
🤬
Sign In
41e1e48a
ROOT
/
transport
/
trojan
/
protocol.go
Search
History
324 lines
|
ISO-8859-1
|
7 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
KeyLength
CommandTCP
CommandUDP
CommandMux
CRLF
_
:
N.EarlyConn
ClientConn
N.ExtendedConn
key
:
[KeyLength]byte
destination
:
M.Socksaddr
headerWritten
:
bool
NewClientConn
(conn net.Conn, key [KeyLength]byte, destination M.Socksaddr)
:
*ClientConn
ClientPacketConn
net.Conn
key
:
[KeyLength]byte
headerWritten
:
bool
NewClientPacketConn
(conn net.Conn, key [KeyLength]byte)
:
*ClientPacketConn
Key
(password string)
:
[KeyLength]byte
ClientHandshakeRaw
(conn net.Conn, key [KeyLength]byte, command byte, destination M.Socksaddr, payload []byte)
:
error
ClientHandshake
(conn net.Conn, key [KeyLength]byte, destination M.Socksaddr, payload []byte)
:
error
ClientHandshakeBuffer
(conn net.Conn, key [KeyLength]byte, destination M.Socksaddr, payload *buf.Buffer)
:
error
ClientHandshakePacket
(conn net.Conn, key [KeyLength]byte, destination M.Socksaddr, payload *buf.Buffer)
:
error
ReadPacket
(conn net.Conn, buffer *buf.Buffer)
:
(M.Socksaddr, error)
WritePacket
(conn net.Conn, buffer *buf.Buffer, destination M.Socksaddr)
:
error
*ClientConn
NeedHandshake
()
:
bool
Write
(p []byte)
:
(n int, err error)
WriteBuffer
(buffer *buf.Buffer)
:
error
ReadFrom
(r io.Reader)
:
(n int64, err error)
WriteTo
(w io.Writer)
:
(n int64, err error)
FrontHeadroom
()
:
int
Upstream
()
:
any
*ClientPacketConn
NeedHandshake
()
:
bool
ReadPacket
(buffer *buf.Buffer)
:
(M.Socksaddr, error)
WritePacket
(buffer *buf.Buffer, destination M.Socksaddr)
:
error
ReadFrom
(p []byte)
:
(n int, addr net.Addr, err error)
WriteTo
(p []byte, addr net.Addr)
:
(n int, err error)
Read
(p []byte)
:
(n int, err error)
Write
(p []byte)
:
(n int, err error)
FrontHeadroom
()
:
int
Upstream
()
:
any
All occurrences
Please wait...
Page is in error, reload to recover