Make python socket asynchronous?
问题 I have the following script and I'm trying to make it asynchronous. It works fine as a client to connect through TCP and send the text file. However, I'm executing it from another software program, and it is slowing down the program I'm running it from (hence the need for async). My aim is to get the script to run in it's own background thread, so that it doesnt affect the program it is being executed from. I've tried adding asyncore, but I just keep getting errors and it wont seem to connect