Skip to content

spider-gazelle/crystal-dtls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

DTLS support for crystal lang

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors