Python IPC 1: TCP-Based Socket Communication Example
Application Scenario Inter-process communication across networks, with connection and reliable transmission. TCP-Based Socket Communication Process TCP Server TCP Client 1、socket() 1、socket() 2、bind() 3、listen() 4、accept() <———————– 2、connect() 5、recv() <———————— 3、send() 6、send() ————————-> 4、recv() 7、close() 5、close() Description: socket(): Create a socket. bind(): The server binds the IP and port,called only by the server. listen(): The server starts … Read more