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
dd5b0abc
ROOT
/
transport
/
vless
/
client.go
Search
History
214 lines
|
ISO-8859-1
|
5 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Client
key
:
[16]byte
flow
:
string
logger
:
logger.Logger
NewClient
(userId string, flow string, logger logger.Logger)
:
(*Client, error)
_
:
N.EarlyConn
Conn
net.Conn
protocolConn
:
net.Conn
key
:
[16]byte
command
:
byte
destination
:
M.Socksaddr
flow
:
string
requestWritten
:
bool
responseRead
:
bool
PacketConn
net.Conn
key
:
[16]byte
destination
:
M.Socksaddr
flow
:
string
requestWritten
:
bool
responseRead
:
bool
*Client
prepareConn
(conn net.Conn)
:
(net.Conn, error)
DialConn
(conn net.Conn, destination M.Socksaddr)
:
(*Conn, error)
DialEarlyConn
(conn net.Conn, destination M.Socksaddr)
:
(*Conn, error)
DialPacketConn
(conn net.Conn, destination M.Socksaddr)
:
(*PacketConn, error)
DialEarlyPacketConn
(conn net.Conn, destination M.Socksaddr)
:
(*PacketConn, error)
DialXUDPPacketConn
(conn net.Conn, destination M.Socksaddr)
:
(vmess.PacketConn, error)
DialEarlyXUDPPacketConn
(conn net.Conn, destination M.Socksaddr)
:
(vmess.PacketConn, error)
*Conn
NeedHandshake
()
:
bool
Read
(b []byte)
:
(n int, err error)
Write
(b []byte)
:
(n int, err error)
Upstream
()
:
any
*PacketConn
Read
(b []byte)
:
(n int, err error)
Write
(b []byte)
:
(n int, err 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)
FrontHeadroom
()
:
int
Upstream
()
:
any
All occurrences
Please wait...
Page is in error, reload to recover