Learn Python sockets by developing a multi-client chat app

Pubblicato il: 08 settembre 2023
sul canale di: 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


In questa pagina del sito puoi guardare il video online Learn Python sockets by developing a multi-client chat app della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Another barefoot eel 08 settembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 392 volte e gli è piaciuto 8 spettatori. Buona visione!