TCP Client Server Application | C++ in 2021
In this lesson, we go over the basics of network communication by creating a simple TCP Client and TCP Server using the Boost ASIO C++ libraries.
Due to the libraries being incompatible with C++ 20 modules, I walk you through the process of creating a new CMake project, downloading and including the libraries and then building out a basic "Hello, Network" application that sends a message to a client that connects to the server.
In future lessons, we'll expand on these applications as we delve into the various C++ topics with the end goal being to create a MUD (Multi-User Dungeon) application.
Chapters
00:00:00 So our story begins...
00:01:24 Setting up the CMake project
00:10:30 Adding the Boost library to our project
00:16:17 Creating a simple tcp server
00:24:00 Creating a simple tcp client
00:32:58 TCPServer class 01 | Building our Networking Library
00:46:15 TCPConnection class | Building our Networking Library
00:55:15 TCPServer class 02 | Building our Networking Library
00:58:49 Double checking and housekeeping (shared_from_this)
01:01:49 Using our library to create our tcp server
01:03:38 Testing client + server
01:05:05 Persistent Connections
01:09:47 Detecting dropped TCP connections
01:13:17 Potential Enhancements (Future videos)
01:19:26 Thanks for watching ( plz dont skip =] )
-
DVR
Fresh and Fit
14 minutes agoJD Vance VS Tim Walz! Vice President Debate 2024
76.9K44 -
Benny Johnson
5 hours ago🚨 DEBATE-MAGEDDON: Kamala In PANIC Ahead of Trump Debate, Dems Admit DEFEAT!? Lara Trump Joins LIVE
174K629 -
3:03:36
Laura Loomer
4 hours agoEP79: LIVE VP DEBATE COVERAGE: JD VANCE VS TIM WALZ
49.4K32 -
1:35:19
Glenn Greenwald
7 hours agoIran's Missile Retaliation Against Israel: What Does It Mean For The U.S. & The Region? Plus: VP Debate Reaction On Locals | SYSTEM UPDATE #344
178K153 -
Fresh and Fit
7 hours agoIran Launches Massive Missile Attack On Israel
150K35 -
DVR
WeAreChange
5 hours agoLIVE W/ Alex Jones & Roger Stone: Vance vs. Walz, HOT CONFLICT Igniting!
98.8K24 -
Slightly Offensive
7 hours agoTHE MOST RETARDED VP DEBATE STREAM | Guest: Breanna Morello
55.4K11 -
Josh Pate's College Football Show
7 hours agoChaotic Saturday Coming | Full Week 6 Predictions | New JP Poll | Added Best Bets
41.5K3 -
55:28
Flyover Conservatives
23 hours agoThe Fight for Minnesota: Illegal Voting and Tim Walz’s Radical Agenda - Sen. Eric Lucero & Rep. Walter Hudson; Economic Update - Dr. Kirk Elliott | FOC Show
45.3K2 -
Michael Franzese
11 hours agoReacting to this week's headlines | Michael Franzese LIVE! Ep. 21
56.6K22