coap-server

a CoAP server implementation for Crystal Lang

coap-server

Provides an interface for handling and responding to CoAP requests.

  • Dispatcher handles the protocol layer
    1. buffers incoming messages
    2. provides completed requests for processing
    3. buffers responses
    4. handles sending the response to the client
  • Processor handles discrete requests
    1. takes a complete request
    2. transforms it for processing (HTTP request)
    3. response received from the request pipline
    4. response transformed for dispatch
flowchart TD
    IO[/Network IO/]
     -->|#buffer| Dispatch[Dispatcher]
    Dispatch -->|request.send| Processor[Processor]
    Processor -->|HTTP request| Pipeline[Request Pipeline]
    Pipeline -->|HTTP response| Processor
    Processor -->|#respond| Dispatch
    Dispatch -->|response.send| IO

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      coap-server:
        github: spider-gazelle/coap-server
    
  2. Run shards install

Usage

require "coap-server"

TODO: Write usage instructions here

Contributing

  1. Fork it (https://github.com/spider-gazelle/coap-server/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

coap-server

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • 9 months ago
  • July 29, 2023
License

MIT License

Links
Synced at

Fri, 10 May 2024 02:55:07 GMT

Languages