package coap
import "github.com/plgd-dev/go-coap/v3"
Package coap provides a CoAP client and server.
Index ¶
- func ListenAndServe(network string, addr string, handler mux.Handler) (err error)
- func ListenAndServeDTLS(network string, addr string, config *piondtls.Config, handler mux.Handler) (err error)
- func ListenAndServeDTLSWithOptions(network string, addr string, config *piondtls.Config, opts ...dtlsServer.Option) (err error)
- func ListenAndServeTCPTLS(network, addr string, config *tls.Config, handler mux.Handler) (err error)
- func ListenAndServeTCPTLSWithOptions(network, addr string, config *tls.Config, opts ...tcpServer.Option) (err error)
- func ListenAndServeWithOptions(network, addr string, opts ...any) (err error)
Functions ¶
func ListenAndServe ¶
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 ¶
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 ¶
Directories ¶
- Version
- v3.3.6 (latest)
- Published
- Sep 18, 2024
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 1 week ago –
Tools for package owners.