<?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 — read one byte at a time]]></title>
		<link>https://www.wolfssl.com/forums/topic217-read-one-byte-at-a-time.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic217.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in read one byte at a time.]]></description>
		<lastBuildDate>Fri, 04 May 2012 23:37:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: read one byte at a time]]></title>
			<link>https://www.wolfssl.com/forums/post497.html#p497</link>
			<description><![CDATA[<p>Actually the wolfSSL read function works fine pulling one byte from the socket. The problem was an infinite loop because strstr() never evaluated to false.</p>]]></description>
			<author><![CDATA[null@example.com (Philhippus)]]></author>
			<pubDate>Fri, 04 May 2012 23:37:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post497.html#p497</guid>
		</item>
		<item>
			<title><![CDATA[read one byte at a time]]></title>
			<link>https://www.wolfssl.com/forums/post496.html#p496</link>
			<description><![CDATA[<p>I am trying to use wolfSSL embedded SSL to implement a chunked encoding handler and my code seems to fail at this this point (after the socket has been set up and already used successfully):<br /></p><div class="codebox"><pre><code>    char tbuff[64];
    memset(tbuff,0,64);
    recvLen = 0;
    while (strstr(tbuff,&quot;\r\n&quot;)==nullptr)
    {
        wolfSSL_read(cssl, buff, 1);
         tbuff[recvLen] = buff[0];
        recvLen+=1;
        cout &lt;&lt; tbuff &lt;&lt; endl;
    }</code></pre></div><p>I realise the extreme inefficiency of this method to find a CRLF but is there any reason why CysSSL would fail here?<br />Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (Philhippus)]]></author>
			<pubDate>Fri, 04 May 2012 18:43:13 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post496.html#p496</guid>
		</item>
	</channel>
</rss>
