package udp

import "github.com/plgd-dev/go-coap/v3/udp"

Index

Functions

func Client

func Client(conn *net.UDPConn, opts ...Option) *client.Conn

Client creates client over udp connection.

func Dial

func Dial(target string, opts ...Option) (*client.Conn, error)

Dial creates a client connection to the given target.

func NewServer

func NewServer(opt ...server.Option) *server.Server

Types

type Option

type Option interface {
	UDPClientApply(cfg *client.Config)
}

A Option sets options such as credentials, keepalive parameters, etc.

Source Files

client.go server.go

Directories

PathSynopsis
udp/client
udp/coder
udp/server
Version
v3.3.6 (latest)
Published
Sep 18, 2024
Platform
linux/amd64
Imports
12 packages
Last checked
1 week ago

Tools for package owners.