<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/examples/network, branch v1.8.6</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.6</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.6'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-10-26T09:25:33+00:00</updated>
<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>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-26T09:25:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=73b72799f3e500f6db0834b30b1c68fc8941093f'/>
<id>urn:sha1:73b72799f3e500f6db0834b30b1c68fc8941093f</id>
<content type='text'>
</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>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-09T16:36:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fa5ac678fc628775a4c65a19bbaea02ef05b25dc'/>
<id>urn:sha1:fa5ac678fc628775a4c65a19bbaea02ef05b25dc</id>
<content type='text'>
</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>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-08-05T22:56:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3d19adf9b323d6b1f907e6825f19b35670bad0d1'/>
<id>urn:sha1: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>
</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>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-07-22T21:41:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=614deb82c7e2ab23cfd718a8be6514026714e316'/>
<id>urn:sha1:614deb82c7e2ab23cfd718a8be6514026714e316</id>
<content type='text'>
Otherwise, on bare-metal/RTOS systems can lead to resource leaks.
</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>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-07-10T20:01:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e3f0f31e07091642a938d7f243f5803588e409b1'/>
<id>urn:sha1: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>
</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>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-05-02T21:45:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c2d885501ff08f017634412b159b03ed923e119f'/>
<id>urn:sha1:c2d885501ff08f017634412b159b03ed923e119f</id>
<content type='text'>
Instead of extracting 4th element, extact last. Much easier to remember!
</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>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-04-28T18:39:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8fcfaf6f220ca9645b4429d756b3646c298d6466'/>
<id>urn:sha1:8fcfaf6f220ca9645b4429d756b3646c298d6466</id>
<content type='text'>
</content>
</entry>
<entry>
<title>examples/http_client_ssl.py: HTTPS client example.</title>
<updated>2016-04-02T20:19:03+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-04-02T20:19:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4f2d59e82fa19be143f1dec59384c3df00d4ccf0'/>
<id>urn:sha1:4f2d59e82fa19be143f1dec59384c3df00d4ccf0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>examples/http_server.py: Bind to 0.0.0.0, to be accessible from other hosts.</title>
<updated>2016-04-02T20:14:19+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-04-02T20:14:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ec5f8db49de83d131a8507caba3681e224b11988'/>
<id>urn:sha1:ec5f8db49de83d131a8507caba3681e224b11988</id>
<content type='text'>
This is helpful when running on deeply embedded targets, but may be
"security risk". Caveat emptor.
</content>
</entry>
<entry>
<title>examples/http_server.py: Introduce main() function.</title>
<updated>2016-04-02T17:57:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-04-02T17:57:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c07a03a36ddcb975478a81bef9eb6ac03fa134aa'/>
<id>urn:sha1:c07a03a36ddcb975478a81bef9eb6ac03fa134aa</id>
<content type='text'>
Allows to re-run code if it was imported as a module (e.g., on bare-metal
ports).
</content>
</entry>
</feed>
