nex-go/connection_interface.go
2024-06-05 17:24:00 -04:00

16 lines
416 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/v2/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)
}