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
99b2ab55
ROOT
/
inbound
/
naive.go
Search
History
640 lines
|
ISO-8859-1
|
14 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
adapter.Inbound
Naive
myInboundAdapter
authenticator
:
auth.Authenticator
tlsConfig
:
tls.ServerConfig
httpServer
:
*http.Server
h3Server
:
any
NewNaive
(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.NaiveInboundOptions)
:
(*Naive, error)
rejectHTTP
(writer http.ResponseWriter, statusCode int)
generateNaivePaddingHeader
()
:
string
kFirstPaddings
naiveH1Conn
net.Conn
readPadding
:
int
writePadding
:
int
readRemaining
:
int
paddingRemaining
:
int
naiveH2Conn
reader
:
io.Reader
writer
:
io.Writer
flusher
:
http.Flusher
rAddr
:
net.Addr
readPadding
:
int
writePadding
:
int
readRemaining
:
int
paddingRemaining
:
int
wrapHttpError
(err error)
:
error
*Naive
Start
()
:
error
Close
()
:
error
ServeHTTP
(writer http.ResponseWriter, request *http.Request)
newConnection
(ctx context.Context, conn net.Conn, userName string, source, destination M.Socksaddr)
badRequest
(ctx context.Context, request *http.Request, err error)
*naiveH1Conn
Read
(p []byte)
:
(n int, err error)
read
(p []byte)
:
(n int, err error)
Write
(p []byte)
:
(n int, err error)
write
(p []byte)
:
(n int, err error)
FrontHeadroom
()
:
int
RearHeadroom
()
:
int
WriterMTU
()
:
int
WriteBuffer
(buffer *buf.Buffer)
:
error
Upstream
()
:
any
ReaderReplaceable
()
:
bool
WriterReplaceable
()
:
bool
*naiveH2Conn
Read
(p []byte)
:
(n int, err error)
read
(p []byte)
:
(n int, err error)
Write
(p []byte)
:
(n int, err error)
write
(p []byte)
:
(n int, err error)
FrontHeadroom
()
:
int
RearHeadroom
()
:
int
WriterMTU
()
:
int
WriteBuffer
(buffer *buf.Buffer)
:
error
Close
()
:
error
LocalAddr
()
:
net.Addr
RemoteAddr
()
:
net.Addr
SetDeadline
(t time.Time)
:
error
SetReadDeadline
(t time.Time)
:
error
SetWriteDeadline
(t time.Time)
:
error
UpstreamReader
()
:
any
UpstreamWriter
()
:
any
ReaderReplaceable
()
:
bool
WriterReplaceable
()
:
bool
All occurrences
Please wait...
Page is in error, reload to recover