Documentation ¶
Index ¶
Constants ¶
View Source
const ( LinkMsgTypePingRequest = 1 LinkMsgTypePingResponse = 2 LinkMsgTypeSession = 10 LinkMsgTypeTunnel = 20 )
message type
Variables ¶
View Source
var ( ErrBufferIsShort = errors.New("buffer is short") ErrMaxLengthLimit = errors.New("max length limit") )
common error define
Functions ¶
This section is empty.
Types ¶
type BaseConn ¶
type BaseConn struct {
// contains filtered or unexported fields
}
BaseConn is the basic connection type
type Conn ¶
Conn is a interface a Conn
func NewBaseConn ¶
func NewBaseConn(conn io.ReadWriteCloser) Conn
NewBaseConn create a base Conn object
func NewSafeConn ¶
func NewSafeConn(conn io.ReadWriteCloser, cipher *ecrypt.Cipher) Conn
NewSafeConn create a safe Conn
Directories ¶
Path | Synopsis |
---|---|
example
|
|
proto
|
|
udp
refs: https://en.wikipedia.org/wiki/User_Datagram_Protocol https://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol https://tools.ietf.org/html/rfc4960 https://en.wikipedia.org/wiki/Datagram_Congestion_Control_Protocol
|
refs: https://en.wikipedia.org/wiki/User_Datagram_Protocol https://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol https://tools.ietf.org/html/rfc4960 https://en.wikipedia.org/wiki/Datagram_Congestion_Control_Protocol |
Click to show internal directories.
Click to hide internal directories.