Monday, February 27, 2012

Python - Hello World Client

Description: Hello World Client.

#!/usr/bin/env python

# http://kuntoaji.blogspot.com
import socket 

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("127.0.0.1", 3000))
print s.recv(1024) # up to 1024 bytes

Artikel Terkait

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...