#!/usr/bin/env python
import socket
HOST='192.168.2.110'
PORT=9002
c=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
c.connect((HOST,PORT))
while True:
user_input =raw_input('msg to send::').strip()
c.send(user_input)
return_data=c.recv(1024)
print'Received',return_data
c.close()