nex-go/connection_interface.go
2024-02-11 16:58:22 -05:00

16 lines
415 B
Go

// Package nex provides a collection of utility structs, functions, and data types for making NEX/QRV servers
package nex
import (
"net"
"github.com/PretendoNetwork/nex-go/types"
)
// ConnectionInterface defines all the methods a connection should have regardless of server type
type ConnectionInterface interface {
Endpoint() EndpointInterface
Address() net.Addr
PID() *types.PID
SetPID(pid *types.PID)
}