Coder Social home page Coder Social logo

Don't Assume Text about telnetpp HOT 3 CLOSED

kazdragon avatar kazdragon commented on August 28, 2024
Don't Assume Text

from telnetpp.

Comments (3)

KazDragon avatar KazDragon commented on August 28, 2024

In particular, this solves the MCCP (http://tintin.sourceforge.net/mccp/) problem, whereby a compression layer sits below the Telnet layer, and its enabling layer sits above. The problem is that the IAC WILL must not be encrypted, since encryption hasn't been enabled. However, everything after the IAC WILL must be encrypted, including further Telnet conversation.

By allowing other types of data to pass through the Telnet layer, you could example register a slot with the MCCP option's activation, and return a custom tag. In this way, the tag will be passed through the activation sequence immediately following the IAC WILL, and the MCCP option can detect the tag and begin encryption during the next transmission. This would work similarly with disabling the option.

from telnetpp.

KazDragon avatar KazDragon commented on August 28, 2024

After some initial work trying to hammer in a boost::any to terminalpp::token, this makes the interface really clunky. Some investigation is required.

from telnetpp.

KazDragon avatar KazDragon commented on August 28, 2024

Came up with a telnet_pass = variant<telnetpp::token, boost::any> structure. It's still clunky, but far less so than hammering a boost::any into the telnetpp::token variant raw. All the tests pass, but it may be worth considering if there's a better interface to be had.

from telnetpp.

Related Issues (20)

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.