connection

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSender

type DataSender interface {
	Write([]byte) error
	GetID() string
}

type NotifyServers

type NotifyServers interface {
	NotifyServers(ids []uuid.UUID, request types.Request) error
	AddServer(ID uuid.UUID, addr string) error
}

func NewNotifierServers

func NewNotifierServers() NotifyServers

type UDPConnection

type UDPConnection struct {
	ClientAddr *net.UDPAddr
	Conn       *net.UDPConn
}

func (*UDPConnection) GetID

func (u *UDPConnection) GetID() string

func (*UDPConnection) Write

func (u *UDPConnection) Write(msg []byte) error

Jump to

Keyboard shortcuts

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