Source

wd_pys60 / wd_tcp.py

Full commit
import socket
"ftp://ftp.visi.com/users/mdc/ping.py"
q="/"
host="ftp.visi.com"

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
#SOCK_DGRAM
#SOCK_STREAM
sock.connect(("127.0.0.1", 3306))
out = sock.makefile("rw", 0)
print >> out, 'CREATE TABLE data (hash integer, key LONG VARCHAR, value LONG VARCHAR)\r\n'
print out.read()
out.close()
print "Client ok"
print dir(socket)