Basic Connection Example : Socket Client : Network PYTHON examples


PYTHON examples » Network » Socket Client »

 

Basic Connection Example


Basic Connection Example

import socket

print "Creating socket...",
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print "done."

print "Connecting to www.navioo.com.",
s.connect(("www.navioo.com"80))
print "done."

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo Network
» Socket Client