<?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 — CALLBACKS define on windows]]></title>
		<link>https://www.wolfssl.com/forums/topic449-callbacks-define-on-windows.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic449.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in CALLBACKS define on windows.]]></description>
		<lastBuildDate>Mon, 11 Nov 2013 17:47:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CALLBACKS define on windows]]></title>
			<link>https://www.wolfssl.com/forums/post1443.html#p1443</link>
			<description><![CDATA[<p>Hi,</p><div class="quotebox"><blockquote><p>We have a problem during the client-server communication, where the server doesn&#039;t complete the SSL handshake. This cause the connect function to be stuck forever and it never returns.</p></blockquote></div><p>Do you know where the SSL handshake is getting stuck?&nbsp; Have you turned on wolfSSL debug messages?&nbsp; You can do so by adding DEBUG_WOLFSSL to your preprocessor flags, then calling wolfSSL_Debugging_ON() / wolfSSL_Debugging_OFF() from your code.</p><div class="quotebox"><blockquote><p>We want to have a (blocking) connect function that we can call with a timeout, and if it doesn&#039;t able to complete the connection during that timeout, it simply returns with an error. Can I do that at all?</p></blockquote></div><p>By default wolfSSL uses send() and recv() in its default I/O callbacks.&nbsp; You should be able to set a timeout value on your socket when you initially create it, using setsockopt().</p><div class="quotebox"><blockquote><p>Because we failed to do the above, we thought of using the non-blocking connect call. The problem was, we couldn&#039;t compile it with WOLFSSL_CALLBACKS set.&nbsp; Can I do that without defining WOLFSSL_CALLBACKS?</p></blockquote></div><p>Yes, you can use non-blocking I/O without defining WOLFSSL_CALLBACKS.&nbsp; woflSSL can use either blocking or non-blocking I/O.&nbsp; See the API reference for wolfSSL_connect(), wolfSSL_accept(), wolfSSL_read(), or wolfSSL_write() for more info on how each works when non-blocking I/O is used.</p><p>Our example client and server are also set up to do non-blocking I/O when the &quot;-N&quot; command line option is used.&nbsp; Feel free to look at client.c or server.c for example usage.</p><p>Best Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Mon, 11 Nov 2013 17:47:17 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1443.html#p1443</guid>
		</item>
		<item>
			<title><![CDATA[Re: CALLBACKS define on windows]]></title>
			<link>https://www.wolfssl.com/forums/post1440.html#p1440</link>
			<description><![CDATA[<p>Thanks for your answer!</p><p>We have a problem during the client-server communication, where the server doesn&#039;t complete the SSL handshake. This cause the connect function to be stuck forever and it never returns.</p><p>We want to have a (blocking) connect function that we can call with a timeout, and if it doesn&#039;t able to complete the connection during that timeout, it simply returns with an error. Can I do that at all?</p><p>Because we failed to do the above, we thought of using the non-blocking connect call. The problem was, we couldn&#039;t compile it with WOLFSSL_CALLBACKS set.&nbsp; Can I do that without defining WOLFSSL_CALLBACKS?</p><p>Thanks&nbsp; again!</p>]]></description>
			<author><![CDATA[null@example.com (Mor)]]></author>
			<pubDate>Sun, 10 Nov 2013 08:00:16 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1440.html#p1440</guid>
		</item>
		<item>
			<title><![CDATA[Re: CALLBACKS define on windows]]></title>
			<link>https://www.wolfssl.com/forums/post1437.html#p1437</link>
			<description><![CDATA[<p>Hi Mor,</p><p>It looks like WOLFSSL_CALLBACKS doesn&#039;t currently support Windows, as like you noted, it uses &lt;sys/time.h&gt;.&nbsp; Will you need to use WOLFSSL_CALLBACKS?&nbsp; The handshake callback (WOLFSSL_CALLBACKS) is intended for embedded systems for debugging support.&nbsp; That is, when a good debugger isn&#039;t available and sniffing is impractical.&nbsp; It basically allows a trace of the handshake embedded SSL.</p><p>Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Fri, 08 Nov 2013 22:17:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1437.html#p1437</guid>
		</item>
		<item>
			<title><![CDATA[CALLBACKS define on windows]]></title>
			<link>https://www.wolfssl.com/forums/post1429.html#p1429</link>
			<description><![CDATA[<p>I tried to define WOLFSSL_CALLBACKS in windows OS with vs2012: C/C++ -&gt;Preprocessor, but it didn&#039;t work, because in callback.h there is #include &lt;sys/time.h&gt;. <br />how can I fix this?<br />I would appreciate your help!</p>]]></description>
			<author><![CDATA[null@example.com (Mor)]]></author>
			<pubDate>Thu, 07 Nov 2013 09:18:38 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1429.html#p1429</guid>
		</item>
	</channel>
</rss>
