Learn Python sockets by developing a multi-client chat app

Published: 08 September 2023
on channel: Another barefoot eel
392
8

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


Watch video Learn Python sockets by developing a multi-client chat app online without registration, duration hours minute second in high quality. This video was added by user Another barefoot eel 08 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 392 once and liked it 8 people.