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
/
client.go
Search
History
520 lines
|
ISO-8859-1
|
12 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
N.Dialer
Client
access
:
sync.Mutex
connections
:
list
List
:
[abstractSession] ctx
context.Context
dialer
:
N.Dialer
protocol
:
Protocol
maxConnections
:
int
minStreams
:
int
maxStreams
:
int
NewClient
(ctx context.Context, dialer N.Dialer, protocol Protocol, maxConnections int, minStreams int, maxStreams int)
:
*Client
NewClientWithOptions
(ctx context.Context, dialer N.Dialer, options option.MultiplexOptions)
:
(N.Dialer, error)
ClientConn
net.Conn
destination
:
M.Socksaddr
requestWrite
:
bool
responseRead
:
bool
ClientPacketConn
N.ExtendedConn
destination
:
M.Socksaddr
requestWrite
:
bool
responseRead
:
bool
_
:
N.NetPacketConn
ClientPacketAddrConn
N.ExtendedConn
destination
:
M.Socksaddr
requestWrite
:
bool
responseRead
:
bool
*Client
DialContext
(ctx context.Context, network string, destination M.Socksaddr)
:
(net.Conn, error)
ListenPacket
(ctx context.Context, destination M.Socksaddr)
:
(net.PacketConn, error)
openStream
()
:
(net.Conn, error)
offer
()
:
(abstractSession, error)
offerNew
()
:
(abstractSession, error)
Close
()
:
error
*ClientConn
readResponse
()
:
error
Read
(b []byte)
:
(n int, err error)
Write
(b []byte)
:
(n int, err error)
ReadFrom
(r io.Reader)
:
(n int64, err error)
WriteTo
(w io.Writer)
:
(n int64, err error)
LocalAddr
()
:
net.Addr
RemoteAddr
()
:
net.Addr
ReaderReplaceable
()
:
bool
WriterReplaceable
()
:
bool
Upstream
()
:
any
*ClientPacketConn
readResponse
()
:
error
Read
(b []byte)
:
(n int, err error)
writeRequest
(payload []byte)
:
(n int, err error)
Write
(b []byte)
:
(n int, err error)
ReadBuffer
(buffer *buf.Buffer)
:
(err error)
WriteBuffer
(buffer *buf.Buffer)
:
error
FrontHeadroom
()
:
int
ReadPacket
(buffer *buf.Buffer)
:
(destination M.Socksaddr, err error)
WritePacket
(buffer *buf.Buffer, destination M.Socksaddr)
:
error
LocalAddr
()
:
net.Addr
RemoteAddr
()
:
net.Addr
Upstream
()
:
any
*ClientPacketAddrConn
readResponse
()
:
error
ReadFrom
(p []byte)
:
(n int, addr net.Addr, err error)
writeRequest
(payload []byte, destination M.Socksaddr)
:
(n int, err error)
WriteTo
(p []byte, addr net.Addr)
:
(n int, err error)
ReadPacket
(buffer *buf.Buffer)
:
(destination M.Socksaddr, err error)
WritePacket
(buffer *buf.Buffer, destination M.Socksaddr)
:
error
LocalAddr
()
:
net.Addr
FrontHeadroom
()
:
int
Upstream
()
:
any
All occurrences
Please wait...
Page is in error, reload to recover