<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/examples/network, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>all: Reformat C and Python source code with tools/codeformat.py.</title>
<updated>2020-02-27T23:33:03+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-02-27T04:36:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=69661f3343bedf86e514337cff63d96cc42f8859'/>
<id>69661f3343bedf86e514337cff63d96cc42f8859</id>
<content type='text'>
This is run with uncrustify 0.70.1, and black 19.10b0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is run with uncrustify 0.70.1, and black 19.10b0.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/network: Add testing key/cert to SSL HTTP server example.</title>
<updated>2019-12-18T04:04:00+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2019-12-18T04:04:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=ba12cdba851f973044c54becca27735a79312707'/>
<id>ba12cdba851f973044c54becca27735a79312707</id>
<content type='text'>
This example will now work on all ports with networking and ssl support,
with both axtls and mbedtls.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This example will now work on all ports with networking and ssl support,
with both axtls and mbedtls.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/http_client: Use read() instead of readall().</title>
<updated>2016-11-13T21:24:45+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-11-13T21:24:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=00a9590e3a27c8784a9d3a95c669142aad4a025f'/>
<id>00a9590e3a27c8784a9d3a95c669142aad4a025f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/http_server_simplistic: Add "not suitable for real use" note.</title>
<updated>2016-10-26T09:25:33+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-10-26T09:25:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=73b72799f3e500f6db0834b30b1c68fc8941093f'/>
<id>73b72799f3e500f6db0834b30b1c68fc8941093f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/network/http_client*: Use \r\n line-endings in request.</title>
<updated>2016-10-09T16:36:04+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-10-09T16:36:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=fa5ac678fc628775a4c65a19bbaea02ef05b25dc'/>
<id>fa5ac678fc628775a4c65a19bbaea02ef05b25dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/network: Split recv- and read-based HTTP servers.</title>
<updated>2016-08-05T22:59:51+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-08-05T22:56:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=3d19adf9b323d6b1f907e6825f19b35670bad0d1'/>
<id>3d19adf9b323d6b1f907e6825f19b35670bad0d1</id>
<content type='text'>
Name recv() based a "simplistic", as it can't work robustly in every
environment. All this is to let people concentreate on proper, read()-
based one (and to turn recv() based into a "negative showcase",
explaining what are the pitfalls of such approach).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Name recv() based a "simplistic", as it can't work robustly in every
environment. All this is to let people concentreate on proper, read()-
based one (and to turn recv() based into a "negative showcase",
explaining what are the pitfalls of such approach).
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/http_client*: Be sure to close socket.</title>
<updated>2016-07-22T21:41:19+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-07-22T21:41:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=614deb82c7e2ab23cfd718a8be6514026714e316'/>
<id>614deb82c7e2ab23cfd718a8be6514026714e316</id>
<content type='text'>
Otherwise, on bare-metal/RTOS systems can lead to resource leaks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise, on bare-metal/RTOS systems can lead to resource leaks.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/http_server*: Update for buffered-like streams (read line by line).</title>
<updated>2016-07-10T20:01:52+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-07-10T20:01:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=e3f0f31e07091642a938d7f243f5803588e409b1'/>
<id>e3f0f31e07091642a938d7f243f5803588e409b1</id>
<content type='text'>
Since "read-exactly" stream refactor, where stream.read(N) will read
exactly N bytes (unless EOF), http_server* examples can't any longer do
client_socket.read(4096) and expect to get full request (it will block
on HTTP/1.1 client). Instead, read request line by line, as the HTTP
protocol requires.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since "read-exactly" stream refactor, where stream.read(N) will read
exactly N bytes (unless EOF), http_server* examples can't any longer do
client_socket.read(4096) and expect to get full request (it will block
on HTTP/1.1 client). Instead, read request line by line, as the HTTP
protocol requires.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/network/: Use getaddrinfo() result in easy way.</title>
<updated>2016-05-02T21:45:37+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-05-02T21:45:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=c2d885501ff08f017634412b159b03ed923e119f'/>
<id>c2d885501ff08f017634412b159b03ed923e119f</id>
<content type='text'>
Instead of extracting 4th element, extact last. Much easier to remember!
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of extracting 4th element, extact last. Much easier to remember!
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/http_server_ssl.py: HTTPS server example.</title>
<updated>2016-04-28T18:39:17+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-04-28T18:39:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=8fcfaf6f220ca9645b4429d756b3646c298d6466'/>
<id>8fcfaf6f220ca9645b4429d756b3646c298d6466</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
