udp

package
v0.0.0-...-dd3c66b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(addr string) (*Client, error)

func (*Client) Recv

func (c *Client) Recv() []byte

func (*Client) Run

func (c *Client) Run()

func (*Client) Send

func (c *Client) Send(buf []byte)

type Data

type Data struct {
	Addr *net.UDPAddr
	Buf  []byte
}

type Server

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

func NewServer

func NewServer(address string) (*Server, error)

func (*Server) Recv

func (s *Server) Recv() Data

func (*Server) Run

func (s *Server) Run()

func (*Server) Send

func (s *Server) Send(data Data)

Jump to

Keyboard shortcuts

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