<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_1_1497252692473_110259"><span id="yui_3_16_0_1_1497252692473_110258">Slight problem now.<br><br>Testing on localhost everything works fine.  Now I am testing on a remote server with large latency and I keep getting this error on the client,<br>SSL: {connection, flight_retransmission_timeout} Fatal error: unexpected message.<br><br>I tested using pydtls as the client and this error does not happen. <br><br>Also the server shows a "unexpected message" tls_alert. Does not happen with pydtls as the client.</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, June 13, 2017 3:51 AM, Vans S <vans_163@yahoo.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv2740310384"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="yiv2740310384yui_3_16_0_1_1497252692473_98435"><span id="yiv2740310384yui_3_16_0_1_1497252692473_98434">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.</span></div> <div class="yiv2740310384qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv2740310384yahoo_quoted" style="display:block;"> <div style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv2740310384yqt7845448513" id="yiv2740310384yqtfd61290"><div dir="ltr"><font size="2" face="Arial"> On Monday, June 12, 2017 8:34 AM, Ingela Andin <ingela@andin.se> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv2740310384y_msg_container"><div id="yiv2740310384"><div><div dir="ltr"><div><div>Hi!<br clear="none"><br clear="none"></div>Only difference to TLS is that you need to provide the option {protocol, dtls}. <br clear="none"><br clear="none"></div>Regards Ingela  <br clear="none"><div><div><div><div><div class="yiv2740310384gmail_extra"><br clear="none"><div class="yiv2740310384gmail_quote">On Mon, Jun 12, 2017 at 9:45 AM, Andreas Schultz <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:aschultz@tpip.net" target="_blank" href="mailto:aschultz@tpip.net">aschultz@tpip.net</a>></span> wrote:<br clear="none"><blockquote class="yiv2740310384gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv2740310384yqt5352387729" id="yiv2740310384yqt67231"><div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;color:#000000;"><div>Hi Vans,</div><div><br clear="none"></div><div>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.</div><div><br clear="none"></div><div>For an example on how this works with my old, patched version, you could check out the CAPWAP [1] project.</div><div><br clear="none"></div><div>Regards</div><div>Andreas</div><div><br clear="none"></div><div>[1]: <a rel="nofollow" shape="rect" target="_blank" href="https://github.com/travelping/capwap">https://github.com/ travelping/capwap</a></div><div><br clear="none"></div><span id="yiv2740310384m_-3327439483479123011zwchr">----- On Jun 12, 2017, at 9:34 AM, Vans S <<a rel="nofollow" shape="rect" ymailto="mailto:vans_163@yahoo.com" target="_blank" href="mailto:vans_163@yahoo.com">vans_163@yahoo.com</a>> wrote:<br clear="none"></span><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica, Arial, sans-serif;font-size:12pt;"><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div dir="ltr" id="yiv2740310384m_-3327439483479123011yui_3_16_0_1_1497252692473_2527">I am trying to implement a DTLS server but having trouble.<br clear="none"><br clear="none">The DTLS client works great, used RoadRunners patches and example.<br clear="none"><br clear="none">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.<br clear="none"><br clear="none" id="yiv2740310384m_-3327439483479123011yui_3_16_0_1_1497252692473_2576">Does anyone have a clue how to create a DTLS server in erlang?</div></div><br clear="none">______________________________ _________________<br clear="none">erlang-questions mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:erlang-questions@erlang.org" target="_blank" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/ listinfo/erlang-questions</a><br clear="none"></blockquote></div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
erlang-questions mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:erlang-questions@erlang.org" target="_blank" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/ listinfo/erlang-questions</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div></div></div></div></div></div><br clear="none"><br clear="none"></div>  </div></div><div class="yiv2740310384yqt7845448513" id="yiv2740310384yqtfd62429"> </div></div><div class="yiv2740310384yqt7845448513" id="yiv2740310384yqtfd39024">  </div></div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>