package tcp

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

Index

Functions

func Client

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

Client creates client over tcp/tcp-tls 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 {
	TCPClientApply(cfg *client.Config)
}

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

Source Files

client.go server.go

Directories

PathSynopsis
tcp/client
tcp/coder
tcp/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.