conn

package
v0.0.0-...-e25560c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

other parts are machines. connection is product. connection records all the information from ingress to egress. connection is created in ingress and then transported to other parts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnType

type ConnType uint8
const (
	StreamConn ConnType
	PacketConn
)

type ProxyPacketConn

type ProxyPacketConn interface {
	net.PacketConn
	Metadata() *message.Metadata
	ReadMsgFrom() (message.Message, net.Addr, error)
	WriteMsgTo(message.Message, net.Addr) error
}

type ProxyStreamConn

type ProxyStreamConn interface {
	net.Conn
	// many msg with one conn
	ReadMux() (msg message.Message, err error)
	WriteMux(msg message.Message) (err error)
	// only one conn, metadata info should be stored
	Metadata() *message.Metadata
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL