Hello there, I am building a CNC / Telnet server using Apache Mina and ran into some issues from the very beginng... First, I will be showing my Classes which are in the relation of the CNC...
CNCServerHandler: https://pastebin.com/A5ea3AgF
CNCServer: https://pastebin.com/HEJedJ1F
CNCClient: https://pastebin.com/qk2Au8Bf
ClientSessionHandler: https://pastebin.com/paWniEHP
Those classes are supposed to:
- Open a telnet port on the server which is used to run the application
- Accept incoming connections to the port
- Handle user input related to that connection (username, password etc.)
Now, the first issue is, whenever I start a telnet session on that port using putty, it is just a blank screen and I have to type something first, for the session to actually appear... THEN, the username input is just skipped and left as a blank String which is very bad.
If you type "quit" it closes, like expected, BUT the input is not behind the prompt where it supposed to be... "Ryze@USERNAME-->", but one line below... I appreciate any help or ideas, as the information about apache mina on the internet are very limited and I also copied this code from a video I have seen.
The bad looking client screen of the Putty session will be added as an image.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.