⌘BABAKOV.NET Let's code!
100% [light] [ru]
~/posts $

December 2019

1 total

1 total

Your Server and Client to It via TcpListener and TcpClient C#

Not long ago, I stumbled upon an article on Habr about TcpListener - it was used to create a Web server. Since there are some tasks that require creating a similar application, it was decided to study the issue and try to recreate what was seen. I rewrote what was in the publication in an application (I always do this before downloading the source code - better for understanding) and ran it, but it didn't work. Actually, it worked, but occasionally - somehow crookedly and not suitable for a real working application. I downloaded the source code - the same thing, it worked but occasionally. <i>Here it works occasionally - means that the client sometimes connected and sometimes didn't connect to the server.</i> I decided to study the issue from scratch. I accumulated some material from the internet, and it all worked out - a testable working application.

374 views 0 comments 0 likes ./Read →