Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Introduction to TCP/IP and Sockets, part 2: Example code Walk-Through

Автор: Rhymu's Videos

Загружено: 2020-06-14

Просмотров: 24173

Описание:

This is a walk-through of example C++ code for using Sockets to send and receive messages between programs using the Internet protocols.

This is part 2 of the series. Part 1 is here:    • Introduction to TCP/IP and Sockets, part 1...  

Here is a link to all the code: https://github.com/rhymu8354/SocketTu...

Index for skipping to the sections you care about:

00:00 - Introduction
01:55 - Downloading the tutorial/example code
02:28 - Opening and building in VSCode
03:52 - Running the TCP server example
04:24 - Modifying TCP client example to run it to connect to TCP server
05:16 - Running the TCP client example
05:38 - Showing TCP client/server exchange using WireShark
09:28 - Running the UDP receiver example
09:49 - Running the UDP sender example (after setting correct IP address)
11:27 - Showing UDP sender/receiver exchange using WireShark
12:15 - Code walk-through begins
12:45 - Sender program (UDP)
13:41 - Receiver program (UDP)
15:16 - DatagramSocket class (UDP, shared by Sender and Receiver programs)
22:50 - Explanation of the 3 common results from socket I/O
25:02 - Differences between POSIX Sockets and WinSock
27:45 - Usage of mutexes to allow asynchronous operations to be thread-safe
28:47 - Rule about not holding mutexes when calling callbacks (to avoid deadlocks)
29:59 - Warning to not assume that it's still safe to access the same state after releasing and then reacquiring a mutex
30:43 - General coding pattern: Pimpl (pointer to implementation)
31:19 - General coding pattern: C++ rule of zero/three/five
33:07 - Client program (TCP)
35:26 - Server program (TCP)
39:03 - Callbacks for when data is received or the connection is closed
40:58 - ClientSocket class (TCP, used by Client program)
43:40 - ServerSocket class (TCP, used by Server program)
47:28 - ServerSocket::Client class (client-server state object)
47:53 - Connection class (TCP, shared by ClientSocket and ServerSocket)
53:25 - O/S abstractions: UsesSockets (WinSock startup/cleanup helper)
54:52 - O/S abstractions: SocketEventLoop (asynchronous socket I/O)

If you would like to see more information on setting up CMake and C/C++ to work with VSCode, this video covers these topics in more detail:    • Introduction to Google Test and CMake  

Introduction to TCP/IP and Sockets, part 2: Example code Walk-Through

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Introduction to TCP/IP and Sockets, part 1: Introducing the protocols and API

Introduction to TCP/IP and Sockets, part 1: Introducing the protocols and API

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

A Beginner's Guide to WebSockets

A Beginner's Guide to WebSockets

How TCP really works // Three-way handshake // TCP/IP Deep Dive

How TCP really works // Three-way handshake // TCP/IP Deep Dive

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

The Linux socket API explained

The Linux socket API explained

Python Sockets Simply Explained

Python Sockets Simply Explained

TCP Fundamentals Part 1 // TCP/IP Explained with Wireshark

TCP Fundamentals Part 1 // TCP/IP Explained with Wireshark

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Python Socket Programming Tutorial for Beginners

Python Socket Programming Tutorial for Beginners

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

Сети для несетевиков // OSI/ISO, IP и MAC, NAT, TCP и UDP, DNS

Сети для несетевиков // OSI/ISO, IP и MAC, NAT, TCP и UDP, DNS

Embedded TCP/IP stack explained: step-by-step code walk-through

Embedded TCP/IP stack explained: step-by-step code walk-through

Куда исчезает ёмкость MLCC? Эффект DC-Bias и старение керамики X7R

Куда исчезает ёмкость MLCC? Эффект DC-Bias и старение керамики X7R

Socket Programming in C for Beginners | Group Chat Application | Multi Threaded + Multiple Users|E4|

Socket Programming in C for Beginners | Group Chat Application | Multi Threaded + Multiple Users|E4|

Введение в Google Test и CMake

Введение в Google Test и CMake

2.7 Socket programming

2.7 Socket programming

Лучший Гайд по Kafka для Начинающих За 1 Час

Лучший Гайд по Kafka для Начинающих За 1 Час

Изучите Microsoft Active Directory (ADDS) за 30 минут

Изучите Microsoft Active Directory (ADDS) за 30 минут

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]