Re: [Zephyr-tsc] Examples for "Zstream" Socket/TLS API

Paul Sokolovsky

Hello Patrik,

On Fri, 27 Apr 2018 09:37:23 +0000
"Flykt, Patrik" <> wrote:


On Thu, 2018-04-26 at 22:43 +0300, Paul Sokolovsky wrote:
I would like to propose to Patrik, the author of the alternative
proposal, to take the "big_http_download" socket sample as the
baseline for API comparison (followed by the other 4 in-tree samples
if there're enough resources). I also would like to draw attention
to showing portability of a TLS application to other POSIX/BSD
Sockets OSes.
I looked through the socket based samples in the Zephyr source code
and for the sake of presenting the various API options, I think we
should go with something very close to the http_get/ example code.
This in order to have a clear and easy presentation of the various
options available. I'll simplify that code a bit and distribute it to
you and Jukka in another email thread, so that we can have the same
example done with different APIs and presented in the Networking
The "big_http_download" example I was talking about is based on
the "http_get" and is a further extension of it. Unlike "http_get",
which makes an HTTP(S) request for a couple KBs of data,
"big_http_download" makes a request for a multi-megabyte file, and
checks the integrity of received data (that it matches a known hash).
That's the difference.



Best Regards,
Paul | Open source software for ARM SoCs
Follow Linaro:!/linaroorg -

Join to automatically receive all group messages.