This is my code, which recvieves the messages from the client:
def RecieveFromClient(clientSocket, address):
print "Connection from " + str(clientSocket)
msg = None
while True:
msg = clientSocket.recv(1024)
print msg
if msg == 'c':
break
clientSocket.close()
print "client gone"
Now when I telnet to the server that is listening to the client, and press a single character, it immediately prints out the character on the server side. What I want is receive a line or complete sentence from the user. Is it possible?