larymak / Python-project-Scripts

This repositories contains a list of python scripts projects from beginner level advancing slowly. More code snippets to be added soon. feel free to clone this repo
GNU General Public License v3.0
1.09k stars 845 forks source link

improved script #379

Open blondon1 opened 4 months ago

blondon1 commented 4 months ago

retry mechanism for the connect_to_server function with a delay between attempts, broader error handling for sockets-related errors, added a simple way to exit the loop and close the socket connection properly, the sending function now accepts the socket object as an argument, improving its independence and reusability.

github-actions[bot] commented 4 months ago

Hi @blondon1! :wave:

Thank you for submitting a pull request! We appreciate your contribution and will review your changes as soon as possible.

larymak commented 3 months ago

While this seems as a good project, someone seeing it for the first time might not understand what it does, would suggest adding a README file with a description of what the code does.