i am using Twisted python for sending reply to my client app (iPhone app). the reply does go to the client but i am getting a appended output string at the client end
This is the place where i am sending to my client –
for name in clientname:
print "name in clientName array is"+name
self.sendClientName(name)
def sendClientName(self , name):
self.transport.write(name)
print "client name sent to client app"
at the client end i am getting receiving the string which is concatenated –
ie: if i have the following in the clientname array – Jack,Rocky
i receive the following string at the client end
“JackRocky” — i want to save the names in the array so this is an issue.
Why is the server not sending the names one by one ?
my code in the server script was wrong and not sending the appropriate message to the client application , just had to correct one loop now everything works fine.