Garbage in telnet protocol data from Windows

Garbage in telnet protocol data from Windows

I'm struggling with creation of the system agnostic TCP socket server on Linux. I am doing it on Linux with Boost.Asio and currently I am getting a lot of garbage when Windows client connects.

I'm struggling with creation of the system agnostic TCP socket server on Linux. I am doing it on Linux with Boost.Asio and currently I am getting a lot of garbage when Windows client connects.

Windows clients connects over telnet protocol and every time I am getting following ints before the actual data transmission begins:

"-1 -5 31 -1 -5 32 -1 -5 24 -1 -5 39 -1 -3 1 -1 -5 3 -1 -3 3"

"-1 -2 31 -1 -2 32 -1 -2 24 -1 -2 39 -1 -4 1"

"-1 -5 36"

"-1 -2 36"

4 messages when the connection is being established. Nothing like this happens if I connect and send data from Linux telnet from terminal, I will only get the actual data.

I am using directly the example from this Boost website, no changes:https://www.boost.org/doc/libs/1_65_0/doc/html/boost_asio/example/cpp11/echo/async_tcp_echo_server.cpp

Boost version 1.65.0 on Ubuntu 18.04.2

I know that Windows and Linux socket differs, but I would like to be able to read Windows tcp data on Linux and tell what is the actual data. What could be done here?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective

Variable Introduction in C#[Bangla]

LIKE | COMMENT | SHARE | SUBSCRIBE A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a speci...