conn

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConn

type IConn interface {
	types.ICloser

	GetSettings() ISettings
	GetSocket() net.Conn

	FetchPayload(pld payload.IPayload) (payload.IPayload, error)
	WritePayload(payload.IPayload) error
	ReadPayload() payload.IPayload
}

func LoadConn

func LoadConn(pSett ISettings, pConn net.Conn) IConn

func NewConn

func NewConn(pSett ISettings, pAddr string) (IConn, error)

type ISettings

type ISettings interface {
	GetNetworkKey() string
	GetMessageSize() uint64
	GetMaxVoidSize() uint64
	GetTimeWait() time.Duration
}

func NewSettings

func NewSettings(pSett *SSettings) ISettings

type SSettings

type SSettings sSettings

Jump to

Keyboard shortcuts

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