https://github.com/esp-rs/rfc2217-rs Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} esp-rs / rfc2217-rs Public * Notifications * Fork 2 * Star 64 IETF RFC2217 implementation in Rust License Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT 64 stars 2 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights esp-rs/rfc2217-rs This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/e] Use Git or checkout with SVN using the web URL. [gh repo clone esp-rs] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @DNedic DNedic Initial ... 4d6ef83 Dec 19, 2022 Initial 4d6ef83 Git stats * 1 commit Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows Initial Dec 19, 2022 src Initial Dec 19, 2022 tests Initial Dec 19, 2022 .gitignore Initial Dec 19, 2022 Cargo.lock Initial Dec 19, 2022 Cargo.toml Initial Dec 19, 2022 LICENSE-APACHE Initial Dec 19, 2022 LICENSE-MIT Initial Dec 19, 2022 README.md Initial Dec 19, 2022 diagram_dark.svg Initial Dec 19, 2022 diagram_light.svg Initial Dec 19, 2022 View code rfc2217-rs What is RFC2217 Library features How to use How it works License Contribution README.md rfc2217-rs rfc2217-rs is an IETF RFC2217 implementation in rust, enabling Com Port functionality over TCP/IP connections. What is RFC2217 IETF RFC2217 defines a Telnet extension providing serial port functionality. It was initially intended to be used with modems, serial printers, fax machines and similar equipment, but it provides the ability to connect any serial based device to the network. Library features This library provides a server implementation, a protocol parser and data structures with binary serialization/deserialization support. The library is std and no_std compatible, however the server implementation is only available in the std mode. To use the library in no_std mode, set the std feature to false. How to use * Using the Server use rfc2217_rs::Server; // --snip-- let mut server = Server::new("/dev/ttyUSB1", "127.0.0.1:7878").unwrap(); // --snip-- loop { let result = server.run(); if let Err(error) == result { handle_err(error); } } * Using the Parser use rfc2217_rs::Parser; use rfc2217_rs::parser::Event; // --snip-- let mut parser = Parser::new(); // --snip-- loop { // --snip-- let result = parser.process_byte(byte); match result { Ok(event) => handle_event(event), Err(error) => handle_error(error), } } * Using the data structure serialization/deserialization use rfc2217_rs::Command; // --snip-- let command_buf = [0; command::SIZE]; let command = Command::NoOp; command.serialize(&mut command_buf); let deserialized_command = Command::deserialize(&command_buf); How it works diagram diagram License Licensed under either of: * Apache License, Version 2.0 (LICENSE-APACHE or http:// www.apache.org/licenses/LICENSE-2.0) * MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option. Contribution Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. About IETF RFC2217 implementation in Rust Topics rust library telnet rustlang serialport serial-communication rfc2217 Resources Readme License Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT Stars 64 stars Watchers 7 watching Forks 2 forks Releases No releases published Packages 0 No packages published Used by 1 * @esp-rs @esp-rs / rfc2217-rs Languages * Rust 100.0% Footer (c) 2022 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.