[erlang-questions] DTLS server example?

Vans S vans_163@REDACTED
Tue Jun 13 09:51:45 CEST 2017


Thank you for the encouragement, I got it working, the key was to call transport_accept then ssl_accept, I was calling one or the other. 

    On Monday, June 12, 2017 8:34 AM, Ingela Andin <ingela@REDACTED> wrote:
 

 Hi!

Only difference to TLS is that you need to provide the option {protocol, dtls}. 

Regards Ingela  

On Mon, Jun 12, 2017 at 9:45 AM, Andreas Schultz <aschultz@REDACTED> wrote:

Hi Vans,
I haven't played with it yet, but with the DTLS stack in R20 creating a DTLS server should be mostly identical to a TLS server.
For an example on how this works with my old, patched version, you could check out the CAPWAP [1] project.
RegardsAndreas
[1]: https://github.com/ travelping/capwap
----- On Jun 12, 2017, at 9:34 AM, Vans S <vans_163@REDACTED> wrote:

I am trying to implement a DTLS server but having trouble.

The DTLS client works great, used RoadRunners patches and example.

For the server side I had success to what I think was accepting a peer using the undocumented 'dtls' module directly, but I cannot send to the socket.

Does anyone have a clue how to create a DTLS server in erlang?
______________________________ _________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/ listinfo/erlang-questions


______________________________ _________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/ listinfo/erlang-questions





   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170613/e4b3cfc8/attachment.htm>


More information about the erlang-questions mailing list