Maintainer | ulf.lilleengen@gmail.com |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
License: BSD3
The CoAP transport API is intended to provide different transports available for CoAP. Currently only UDP transport is supported.
- createUDPTransport :: Socket -> Transport
- type Endpoint = SockAddr
- data Transport = Transport {
- sendTo :: ByteString -> Endpoint -> IO Int
- recvFrom :: IO (ByteString, Endpoint)
- localEndpoint :: IO Endpoint
Documentation
createUDPTransport :: Socket -> Transport Source
Create UDP transport instance for a given socket.
A CoAP transport instance capable of sending and receiving data
Transport | |
|