<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Method sequence for UDP/DTLS]]></title>
		<link>https://www.wolfssl.com/forums/topic517-method-sequence-for-udpdtls.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic517.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Method sequence for UDP/DTLS.]]></description>
		<lastBuildDate>Fri, 21 Feb 2014 22:42:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Method sequence for UDP/DTLS]]></title>
			<link>https://www.wolfssl.com/forums/post1569.html#p1569</link>
			<description><![CDATA[<p>The echoserver tutorial will listen() on the TCP socket. When you are using UDP, you don&#039;t listen() on the socket ever. Normally on UDP, you just recvfrom() on the socket and process the datagrams as they arrive. If you look at the wolfSSL echoserver, it has this implemented. (Note, the wolfSSL example echoserver is more complicated than the tutorial version.)</p>]]></description>
			<author><![CDATA[null@example.com (john)]]></author>
			<pubDate>Fri, 21 Feb 2014 22:42:39 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1569.html#p1569</guid>
		</item>
		<item>
			<title><![CDATA[Method sequence for UDP/DTLS]]></title>
			<link>https://www.wolfssl.com/forums/post1568.html#p1568</link>
			<description><![CDATA[<p>Hi,</p><p>I am trying to figure out how to make the echoserver/echoclient work with UPD and DTLS. I took the echoerver (tcpserv04.c) and replaced two lines of code with what I hoped would make it work with UDP and DTLS.&nbsp; The lines I changed are as follows:</p><p>original line: <br />if( (ctx = wolfSSL_CTX_new(wolfTLSv1_server_method()) ) == NULL)</p><p>changed to:<br />if( (ctx = wolfSSL_CTX_new(wolfDTLSv1_server_method()) ) == NULL)</p><p>and</p><p>original line:<br />listenfd = Socket(AF_INET, SOCK_STREAM, 0);</p><p>changed to:<br />listenfd = Socket(AF_INET, SOCK_DGRAM, 0);</p><p>When I try to run the server, I get <br />Listen error: operation not supported</p><p>Is there a particular method I should be calling or not calling? Anyone who can give any help on this I would greatly appreciate it.</p><p>Doug</p><p>P.S. By the way, I did use --enable-dtls when I configured the wolfSSL embedded SSL library.</p>]]></description>
			<author><![CDATA[null@example.com (douglas.atkinson)]]></author>
			<pubDate>Fri, 21 Feb 2014 21:23:52 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1568.html#p1568</guid>
		</item>
	</channel>
</rss>
