Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 758 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 758 Bytes

rust-picotcp

An ongoing effort to create bindings for the complete PicoTCP library Basic wrappers around some of the core functionality of PicoTCP have been create. You can now reply to IPv4 and IPv6 pings, be a dhcp server or an echo server.

Installation

You don't have to install rust-picotcp, but rather add it to your Cargo.toml as a dependency:

[dependencies.picotcp]
git = "https://github.com/maximevince/rust-picotcp.git"

Usage

Here's a sample program using rust-picotcp:

extern crate picotcp;

fn main() {
    picotcp::stack_init();
}

If you put that into a file called src/picotest.rs, and add a corresponding Cargo.toml file, you can:

$ cargo build
$ ./target/picotest

License

GPLv2 licensed.