Documentation ¶
Overview ¶
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, ...) (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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 ¶ added in v3.1.5
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 ¶ added in v3.1.5
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 ¶ added in v3.1.5
ListenAndServeWithOption Starts a server on address and network specified Invoke options for incoming queries. The options is only support tcpServer.Option and udpServer.Option
Types ¶
This section is empty.