import socket s = socket.socket() host = socket.gethostname() port = 1234 s.connect((host, port)) print s.recv(1024)
21.1.Client | ||||
21.1.1. | A Minimal Client | |||
21.1.2. | Opening a Client-Side Socket for Sending Data | |||
21.1.3. | TCP Timestamp Client | |||
21.1.4. | A client that reads information from a server and display that information. |