socket.socket(socket.AF_INET, socket.SOCK_STREAM) : Socket : Network PYTHON TUTORIALS


PYTHON TUTORIALS » Network » Socket »

 

socket.socket(socket.AF_INET, socket.SOCK_STREAM)


import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print "done."
s.connect(("www.google.com"80))
print "done."



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Network
» Socket