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
466800aa
ROOT
/
transport
/
wireguard
/
client_bind.go
Search
History
168 lines
|
ISO-8859-1
|
2 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
conn.Bind
ClientBind
ctx
:
context.Context
dialer
:
N.Dialer
peerAddr
:
M.Socksaddr
reserved
:
[3]uint8
connAccess
:
sync.Mutex
conn
:
*wireConn
done
:
chan struct{}
NewClientBind
(ctx context.Context, dialer N.Dialer, peerAddr M.Socksaddr, reserved [3]uint8)
:
*ClientBind
wireConn
net.Conn
access
:
sync.Mutex
done
:
chan struct{}
*ClientBind
connect
()
:
(*wireConn, error)
Open
(port uint16)
:
(fns []conn.ReceiveFunc, actualPort uint16, err error)
receive
(b []byte)
:
(n int, ep conn.Endpoint, err error)
Reset
()
Close
()
:
error
SetMark
(mark uint32)
:
error
Send
(b []byte, ep conn.Endpoint)
:
error
ParseEndpoint
(s string)
:
(conn.Endpoint, error)
Endpoint
()
:
conn.Endpoint
*wireConn
Close
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover