# ##Network programming## # Sender # import socket ###Import socket # socket.TCP/IP ###Define the client, define the socket type # connect(a.ip,a.port) ##Connect to the remote machine # socket.send(hello)##start sending # socket.recv() ##then receive # socket.close()##client closes # # The receiving end, that is, the server end # import socket #### # socket.TCP/IP ### Definition type # listen(0.0.0.0,69696) ### Listening port # waiting() ### Waiting for connection # recv() ### Receive data # send() ### Send data