v3 – github.com/plgd-dev/go-coap/v3 Index | Files | Directories

package coap

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

Package coap provides a CoAP client and server.

Index

Functions

func ListenAndServe

func ListenAndServe(network string, addr string, handler mux.Handler) (err error)

ListenAndServe Starts a server on address and network specified Invoke handler for incoming queries.

func ListenAndServeDTLS

func ListenAndServeDTLS(network string, addr string, config *piondtls.Config, handler mux.Handler) (err error)

ListenAndServeDTLS Starts a server on address and network over DTLS specified Invoke handler for incoming queries.

func ListenAndServeDTLSWithOptions

func ListenAndServeDTLSWithOptions(network string, addr string, config *piondtls.Config, opts ...dtlsServer.Option) (err error)

ListenAndServeDTLSWithOptions Starts a server on address and network over DTLS specified Invoke options for incoming queries.

func ListenAndServeTCPTLS

func ListenAndServeTCPTLS(network, addr string, config *tls.Config, handler mux.Handler) (err error)

ListenAndServeTCPTLS Starts a server on address and network over TLS specified Invoke handler for incoming queries.

func ListenAndServeTCPTLSWithOptions

func ListenAndServeTCPTLSWithOptions(network, addr string, config *tls.Config, opts ...tcpServer.Option) (err error)

ListenAndServeTCPTLSWithOptions Starts a server on address and network over TLS specified Invoke options for incoming queries.

func ListenAndServeWithOptions

func ListenAndServeWithOptions(network, addr string, opts ...any) (err error)

ListenAndServeWithOption Starts a server on address and network specified Invoke options for incoming queries. The options is only support tcpServer.Option and udpServer.Option

Source Files

server.go

Directories

PathSynopsis
dtls
dtls/server
examples
examples/dtls
examples/dtls/cid
examples/dtls/cid/client
examples/dtls/cid/server
examples/dtls/pki
examples/dtls/pki/client
examples/dtls/pki/server
examples/dtls/psk
examples/dtls/psk/client
examples/dtls/psk/server
examples/mcast
examples/mcast/client
examples/mcast/server
examples/observe
examples/observe/client
examples/observe/server
examples/options
examples/options/server
examples/simple
examples/simple/client
examples/simple/server
message
message/codes
message/noresponse
message/pool
message/status
mux
net
net/blockwise
net/client
net/client/limitParallelRequests
net/monitor
net/monitor/inactivity
net/observation
net/responsewriter
options
options/config
pkg
pkg/cache
pkg/connections
pkg/errors
pkg/fn
pkg/math
pkg/rand
pkg/runner
pkg/runner/periodic
pkg/sync
tcp
tcp/client
tcp/coder
tcp/server
test
test/netHelper package for tests, must not be used in production code.
udp
udp/client
udp/coder
udp/server
Version
v3.3.6 (latest)
Published
Sep 18, 2024
Platform
linux/amd64
Imports
13 packages
Last checked
1 week ago

Tools for package owners.