Example: client/server socket interaction via TCP
{"Image DocumentName": "Example: client/server socket interaction via TCP", "Image ImageDescription": "Server (running on hostid) create socket, port=x. for incoming request: welcomeSocket = ServerSocket() wait for incoming connection request. conncectionSocket = welcomeSocket.accept() read request from connectionSocket. write reply to connectionSocket. close connectionSocket. Client. create socket. Connect to hostid, port = x. clientSocket = Socket() send request using clientSocket. read reply from clientSocket. close clientSocket. TCP connection setup.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}