wgtester

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server handles listening for connection check requests using UDP

func NewServer

func NewServer(serverAddr string, serverPort uint16, newtID string) *Server

NewServer creates a new connection test server using UDP

func NewServerWithNetstack

func NewServerWithNetstack(serverAddr string, serverPort uint16, newtID string, tnet *netstack2.Net) *Server

NewServerWithNetstack creates a new connection test server using WireGuard netstack

func (*Server) RestartWithNetstack

func (s *Server) RestartWithNetstack(tnet *netstack2.Net) error

RestartWithNetstack stops the current server and restarts it with netstack

func (*Server) Start

func (s *Server) Start() error

Start begins listening for connection test packets using UDP

func (*Server) Stop

func (s *Server) Stop()

Stop shuts down the server

Jump to

Keyboard shortcuts

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