Giter Site home page Giter Site logo

straight-coding / straight-httpd-lwip-mbedtls-simulator Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 3.0 5.14 MB

Simple HTTPD simulator for embedded systems based on LWIP and MbedTLS, which looks like a virtual device and supports SSDP, HTTP/HTTPS, SSI and RESTful API using chunked header. It is asynchronous and event driven model which supports large file uploading and downloading.

License: MIT License

C 98.08% C++ 1.53% CMake 0.04% Objective-C 0.03% CSS 0.05% HTML 0.05% JavaScript 0.20% Batchfile 0.01%
httpd lwip mbedtls pcap ssdp https ssi discover simulator chunked

straight-httpd-lwip-mbedtls-simulator's People

Contributors

straight-coding avatar tinahe75 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

straight-httpd-lwip-mbedtls-simulator's Issues

OnHttpReceive and altcp_mbedtls_bio_recv

I have a question about the OnHttpReceive function for http server,
When TLS active;
We initiated http with HttpdInit and this function calls ; altcp_tls_new and altcp_accept(listen, OnHttpAccept) function.
OnHttpReceive calls => altcp_recv(pcbAccepted, OnHttpReceive) functions when received. (expected)

But altcp_tls_new calls altcp_tls_wrap and it calls, altcp_mbedtls_setup function.
This function include,
below line;
mbedtls_ssl_set_bio(&state->ssl_context, conn, altcp_mbedtls_bio_send, altcp_mbedtls_bio_recv, NULL); So if we received anything always work altcp_mbedtls_bio_recv so how the altcp_recv(pcbAccepted, OnHttpReceive) calling when receiving ?

When I receive some data always works altcp_mbedtls_bio_recv not OnHttpReceive, how can I connect this functions ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.