sslnet

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MulticastServer

type MulticastServer struct {
	Consumer func([]byte, *net.UDPAddr)

	SkipInterfaces []string
	Verbose        bool
	// contains filtered or unexported fields
}

func NewMulticastServer

func NewMulticastServer(multicastAddress string) (r *MulticastServer)

func (*MulticastServer) Start

func (r *MulticastServer) Start()

func (*MulticastServer) Stop

func (r *MulticastServer) Stop()

type UdpClient

type UdpClient struct {
	Name     string
	Consumer func([]byte)
	// contains filtered or unexported fields
}

UdpClient establishes a UDP connection to a server

func NewUdpClient

func NewUdpClient(address string, nif string) (t *UdpClient)

NewUdpClient creates a new UDP client

func (*UdpClient) Send

func (c *UdpClient) Send(data []byte)

Send data to the server

func (*UdpClient) Start

func (c *UdpClient) Start()

Start the client by listening for responses it a separate goroutine

func (*UdpClient) Stop

func (c *UdpClient) Stop()

Stop the client by stop listening for responses and closing all existing connections

Jump to

Keyboard shortcuts

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