Documentation
¶
Index ¶
Constants ¶
View Source
const ( TUICVersion byte = tuicVersion TUICCommandAuthenticate byte = commandAuthenticate TUICCommandConnect byte = commandConnect TUICCommandPacket byte = commandPacket TUICCommandDissociate byte = commandDissociate TUICCommandHeartbeat byte = commandHeartbeat )
View Source
const ProtocolName = "ppnode-tuic"
ProtocolName distinguishes the repaired listener from the upstream listener. Authentication and packet interfaces remain those of the upstream TUIC proxy.
Variables ¶
This section is empty.
Functions ¶
func ReadDestination ¶
Types ¶
type PacketConn ¶
type PacketConn interface {
stdnet.Conn
ReadPacket() ([]byte, xnet.Destination, error)
WritePacket([]byte, xnet.Destination) error
}
Click to show internal directories.
Click to hide internal directories.