動画検索
関連広告
検索結果
Introduction
Introduction to WinSock
OSI Model
Client-Server Architecture
IP Addresses
Ports
Creating a Socket Illustration
Seven Steps of a Server
Five Steps of a Client
Server Step 1 - Load DLL
Server Step 2 - Create Socket
Server Step 3 - Bind Socket
Server Step 4 - Listen
Server Step 5 - Accept
Client Step 3 - Connect
Exercise - Setting up the Server
Exercise - Setting up the Client
Exercise - Connecting Client and Server
Introduction
Downloading the tutorial/example code
Opening and building in VSCode
Running the TCP server example
Modifying TCP client example to run it to connect to TCP server
Showing TCP client/server exchange using WireShark
Running the UDP receiver example
Running the UDP sender example (after setting correct IP address)
Showing UDP sender/receiver exchange using WireShark
Code walk-through begins
Receiver program (UDP)
DatagramSocket class (UDP, shared by Sender and Receiver programs)
Explanation of the 3 common results from socket I/O
Differences between POSIX Sockets and WinSock
Usage of mutexes to allow asynchronous operations to be thread-safe
Warning to not assume that it's still safe to access the same state after releasing and then reacquiring a mutex
General coding pattern: Pimpl (pointer to implementation)
General coding pattern: C++ rule of zero/three/five
Client program (TCP)
Server program (TCP)
ClientSocket class (TCP, used by Client program)
ServerSocket class (TCP, used by Server program)
ServerSocket::Client class (client-server state object)
Connection class (TCP, shared by ClientSocket and ServerSocket)
O/S abstractions: SocketEventLoop (asynchronous socket I/O)
Recap on Part 1 - Setting up the socket
Introduction to TCP
Client Step 4 - Send data via TCP
Server Step 6 - Receive data via TCP
Sending Objects via TCP
String functions
Introduction to UDP
Configuring the Socket to use UDP
Sending data via the sendto function
Receiving data via the recvfrom function
Sending Objects via UDP
Exercise 1 - Client Step 4 - Sending data via TCP
Exercise 1 - Server Step 6 - Receiving data via TCP
Exercise 2 - Server Step 6 - Sending data via TCP
Exercise 2 - Client Step 4 - Receiving data via TCP