Senin, 27 Februari 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

Tidak ada komentar:

Poskan Komentar

Related Posts Plugin for WordPress, Blogger...