net

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 9 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 net.UDPAddr, encKey string, handler HandlerFunc) *Client

func (Client) SendEvent

func (c Client) SendEvent(msg model.ClipboardUpdated) error

type HandlerFunc

type HandlerFunc func(*net.UDPAddr, int, []byte)

type Server

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

func NewServer

func NewServer(addr net.UDPAddr, encKey string, handler HandlerFunc) *Server

func (Server) Listen

func (s Server) Listen()

Jump to

Keyboard shortcuts

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