Learn Python sockets by developing a multi-client chat app

Publicado el: 08 septiembre 2023
en el canal de: 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


En esta página del sitio puede ver el video en línea Learn Python sockets by developing a multi-client chat app de Duración hora minuto segunda en buena calidad , que subió el usuario Another barefoot eel 08 septiembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 392 veces y le gustó 8 a los espectadores. Disfruta viendo!