#!/usr/bin/python

# Set the socket parameters
host = "localhost"
port = 13 #"daytime"


# Client program

from socket import *

# Create socket
s = socket(AF_INET,SOCK_STREAM)

# establish connection
dest = (host,port);
s.connect(dest);

# send/receive traffic
while 1:
	buf = s.recv(1024);
	if buf == '':
		break;
	else:
		print buf ,


# Close socket
s.close()

