server

package
v0.0.0-...-279a5f3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RUDPServer

type RUDPServer struct {
	// contains filtered or unexported fields
}

func (*RUDPServer) Close

func (conn *RUDPServer) Close()

func (*RUDPServer) Initialize

func (conn *RUDPServer) Initialize(c *net.UDPConn, s *net.UDPAddr)

func (RUDPServer) IsConnected

func (conn RUDPServer) IsConnected() bool

func (*RUDPServer) ReadFromUDP

func (conn *RUDPServer) ReadFromUDP(buffer []byte) (n int, verified []uint32, addr *netip.AddrPort, err error)

func (*RUDPServer) WriteToUDP

func (conn *RUDPServer) WriteToUDP(payload *[]byte, addr netip.AddrPort, reliable bool) (int, uint32, error)

WriteToUDP acts like Write but sends the packet to an UDPAddr

Jump to

Keyboard shortcuts

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