kolapapa / mini-telnet Goto Github PK
View Code? Open in Web Editor NEWA mini async telnet client.
License: MIT License
A mini async telnet client.
License: MIT License
Thanks for writing and releasing this crate. I'm using it to collect diagnostic data from my router and seem to be getting extra newlines in the response from the telnet server.
When I telnet to my router using PuTTY and issue xdslctl info
I get:
xdslctl: ADSL driver and PHY status
Status: Showtime
Last Retrain Reason: 1
Last initialization procedure status: 0
Max: Upstream rate = 12578 Kbps, Downstream rate = 60380 Kbps
Bearer: 0, Upstream rate = 12835 Kbps, Downstream rate = 59803 Kbps
Bearer: 1, Upstream rate = 0 Kbps, Downstream rate = 0 Kbps
but when I use mini-telnet and let response = telnet.execute("xdslctl info").await?
and then println!("{}", response)
, I get:
xdslctl: ADSL driver and PHY status
Status: Showtime
Last Retrain Reason: 1
Last initialization procedure status: 0
Max: Upstream rate = 12578 Kbps, Downstream rate = 60276 Kbps
Bearer: 0, Upstream rate = 12835 Kbps, Downstream rate = 59803 Kbps
Bearer: 1, Upstream rate = 0 Kbps, Downstream rate = 0 Kbps
Could it be
Line 255 in 250f39d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.