Documentation
¶
Overview ¶
Package advLayer contains subpackages for Advanced Layer in VSI model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxEarlyDataLen = 2048 //for ws early data
为了避免黑客攻击,我们固定earlydata最大值为2048
View Source
var ProtocolsMap = make(map[string]Creator)
Functions ¶
func PrintAllProtocolNames ¶
func PrintAllProtocolNames()
Types ¶
type MuxClient ¶
type MuxClient interface { Client // If IsSuper, underlay should be nil; // // If not IsSuper and underlay == nil, it will return error if it can't find any extablished connection. // Usually underlay is tls.Conn. GetCommonConn(underlay net.Conn) (conn any, err error) DialSubConn(underlay any) (net.Conn, error) ProcessWhenFull(underlay any) //for quic }
grpc (h2) and quic (h3)
type MuxServer ¶
type MuxServer interface { //non-blocking StartHandle(underlay net.Conn, newSubConnChan chan net.Conn) }
grpc
type SingleClient ¶
type SingleClient interface { Client //it's 0-rtt if payload is provided Handshake(underlay net.Conn, payload []byte) (net.Conn, error) }
ws (h1.1)
Directories
¶
Path | Synopsis |
---|---|
Package grpc implements methods for grpc.
|
Package grpc implements methods for grpc. |
Package grpcHardcore implements grpc tunnel without importing google.golang.org/grpc.
|
Package grpcHardcore implements grpc tunnel without importing google.golang.org/grpc. |
Package quic defines functions to listen and dial quic, with some customizable congestion settings.
|
Package quic defines functions to listen and dial quic, with some customizable congestion settings. |
Package ws implements websocket handshake.
|
Package ws implements websocket handshake. |
Click to show internal directories.
Click to hide internal directories.