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
f680d0ac
ROOT
/
common
/
mux
/
protocol.go
Search
History
241 lines
|
ISO-8859-1
|
4 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Destination
ProtocolSMux
:
Protocol
ProtocolYAMux
Protocol
newServer
(conn net.Conn)
:
(abstractSession, error)
newClient
(conn net.Conn)
:
(abstractSession, error)
String
()
:
string
ParseProtocol
(name string)
:
(Protocol, error)
smuxConfig
()
:
*smux.Config
yaMuxConfig
()
:
*yamux.Config
version0
Request
Protocol
:
Protocol
ReadRequest
(reader io.Reader)
:
(*Request, error)
EncodeRequest
(buffer *buf.Buffer, request Request)
flagUDP
flagAddr
statusSuccess
statusError
StreamRequest
Network
:
string
Destination
:
M.Socksaddr
PacketAddr
:
bool
ReadStreamRequest
(reader io.Reader)
:
(*StreamRequest, error)
requestLen
(request StreamRequest)
:
int
EncodeStreamRequest
(request StreamRequest, buffer *buf.Buffer)
StreamResponse
Status
:
uint8
Message
:
string
ReadStreamResponse
(reader io.Reader)
:
(*StreamResponse, error)
wrapStream
net.Conn
wrapError
(err error)
:
error
*wrapStream
Read
(p []byte)
:
(n int, err error)
Write
(p []byte)
:
(n int, err error)
WriteIsThreadUnsafe
()
Upstream
()
:
any
All occurrences
Please wait...
Page is in error, reload to recover