crystal-dtls v0.9.1

DTLS support for crystal lang

Crystal Lang DTLS Support

CI

Communicate over UDP securely with DTLS

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      dtls:
        github: spider-gazelle/crystal-dtls
    
  2. Run shards install

Usage


require "dtls"

host = UDPSocket.new
host.connect "dtls.server", 4444

# Wrap the UDP connection
socket = DTLS::Socket::Client.new(host)

# Communicate over DTLS
socket << "request"
socket.flush

response = socket.gets

socket.close

Repository

crystal-dtls

Owner
Statistic
  • 2
  • 0
  • 2
  • 2
  • 0
  • about 1 year ago
  • March 31, 2021
License

MIT License

Links
Synced at

Fri, 08 Nov 2024 02:08:35 GMT

Languages