8/30/2023 0 Comments Chit chat messenger![]() Client script uses to be thin because it has very less work i.e. Ready_to_read,ready_to_write,in_error = lect(socket_list,0)Ĭnd("You are connected from:" + str(addr))Ĭnd("Your user detail saved as : "+str(data))Ĭlient script is run by the user, so the same client code will be run by a different user but each will have a separate socket so they will have their unique communication channel. Server_tsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) Server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) Here’s the code for server-chat.py import socket,select end the communication by terminating the connection
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |