Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: use netdev package #3704

Merged
merged 6 commits into from
Dec 6, 2023
Merged

net: use netdev package #3704

merged 6 commits into from
Dec 6, 2023

Commits on Dec 6, 2023

  1. src/net: remove existing files to replace with submodule

    Signed-off-by: deadprogram <[email protected]>
    deadprogram committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    3e036a8 View commit details
    Browse the repository at this point in the history
  2. modules: add tinygo net package as submodule

    Signed-off-by: deadprogram <[email protected]>
    deadprogram committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    58ff205 View commit details
    Browse the repository at this point in the history
  3. Add network device driver model, netdev

    This PR adds a network device driver model called netdev. There will be a companion PR for TinyGo drivers to update the netdev drivers and network examples. This PR covers the core "net" package.
    
    An RFC for the work is here: #tinygo-org/drivers#487. Some things have changed from the RFC, but nothing major.
    
    The "net" package is a partial port of Go's "net" package, version 1.19.3. The src/net/README file has details on what is modified from Go's "net" package.
    
    Most "net" features are working as they would in normal Go. TCP/UDP/TLS protocol support is there. As well as HTTP client and server support. Standard Go network packages such as golang.org/x/net/websockets and Paho MQTT client work as-is. Other packages are likely to work as-is.
    
    Testing results are here (https://docs.google.com/spreadsheets/d/e/2PACX-1vT0cCjBvwXf9HJf6aJV2Sw198F2ief02gmbMV0sQocKT4y4RpfKv3dh6Jyew8lQW64FouZ8GwA2yjxI/pubhtml?gid=1013173032&single=true).
    scottfeldman authored and deadprogram committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    78c3695 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b3a6a70 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    70cb4fa View commit details
    Browse the repository at this point in the history
  6. modules: switch to main branch of net submodule

    Signed-off-by: deadprogram <[email protected]>
    deadprogram committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    ed24edc View commit details
    Browse the repository at this point in the history