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?

c++

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

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

What is new features in Javascript ES2020 ECMAScript 2020

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Random Password Generator Online

HTML Color Picker online | HEX Color Picker | RGB Color Picker

Loops in C++ | For, While, and Do While Loops in C++

In this Video We are going to see how to use Loops in C++. We will see How to use For, While, and Do While Loops in C++.

Using isdigit() in C/C++

In this article, we'll take a look at using the isdigit() function in C/C++. This is a very simple way to check if any value is a digit or not. Let's look

C++ Tutorial for Beginners 19 - C++ Structures | Struct declaration | C++ Data Structures

Welcome to this course on C++ Tutorial for Beginners. In this video we will see How to use C++ Structures.

Object Oriented Programming in C++ | C++ OOPs Concepts | Learn Object Oriented C++

C++ is general purpose, compiled, object-oriented programming language and its concepts served as the basis for several other languages such as Java, Python, Ruby, Perl etc.

A Complete Guide to fread() in C/C++

In this article, we’ll take a look at using fread() in C/C++.