0:00 Introduction
1:03 Creating a class for the server
1:47 Creating the server side socket
4:09 Accepting connections on the server socket
5:56 Creating a class for the client
7:44 Connecting to the server from the client
8:45 Allowing connections from multiple clients
9:29 Creating a separate socket for every client
9:52 Socket for new connections VS socket for ongoing communication
12:05 Different clients use different temporary ports
12:55 Receiving the username on the server socket (socket.recv)
13:33 Using "decode" to convert a byte array to a string
14:07 Sending the username from the client socket (socket.send)
14:30 Using "encode" to convert a string to a byte array
15:36 Using a different thread to handle each client socket
17:52 Receiving messages from clients in the client threads
18:29 Adding tkinter GUI for the client
20:12 Sending messages from the client
21:53 Connecting to the server on button click
23:31 Sending different messages according to the user input
24:20 Preveting a repeated connection from a server
25:03 Handling client hangups
27:14 Passing the username to the client handling thread
28:15 Managing a list of connected clients
28:55 Forwarding messages to all clients
29:58 Handling messages from the server to the client
31:40 Showing sent messages on the client
Смотрите видео Learn Python sockets by developing a multi-client chat app онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Another barefoot eel 08 Сентябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 392 раз и оно понравилось 8 людям.