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
f25296fb
ROOT
/
experimental
/
libbox
/
service.go
Search
History
119 lines
|
ISO-8859-1
|
3 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
BoxService
ctx
:
context.Context
cancel
:
context.CancelFunc
instance
:
*box.Box
NewService
(configContent string, platformInterface PlatformInterface)
:
(*BoxService, error)
_
:
platform.Interface
platformInterfaceWrapper
iif
:
PlatformInterface
useProcFS
:
bool
*BoxService
Start
()
:
error
Close
()
:
error
*platformInterfaceWrapper
AutoDetectInterfaceControl
()
:
control.Func
OpenTun
(options tun.Options, platformOptions option.TunPlatformOptions)
:
(tun.Tun, error)
Write
(p []byte)
:
(n int, err error)
FindProcessInfo
(ctx context.Context, network string, source netip.AddrPort, destination netip.AddrPort)
:
(*process.Info, error)
All occurrences
Please wait...
Page is in error, reload to recover