A Minimal Client : Client : Network PYTHON TUTORIALS


PYTHON TUTORIALS » Network » Client »

 

A Minimal Client


import socket

s = socket.socket()

host = socket.gethostname()
port = 1234

s.connect((host, port))
print s.recv(1024)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Network
» Client