server

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package server provides a server API for io4edge I/O devices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPServer

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

UDPServer represents a server for io4edge devices

func NewUDPServer

func NewUDPServer(port string) (*UDPServer, error)

NewUDPServer creates a new function client from a socket with the specified address.

func (*UDPServer) Close

func (s *UDPServer) Close()

Close closes the server

func (*UDPServer) ListenForNextConnection

func (s *UDPServer) ListenForNextConnection() (*client.Channel, error)

ListenForNextConnection waits for a new connection and returns a channel to the client

Jump to

Keyboard shortcuts

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