Twisted Socket Send Message Immediately
问题 I am making an iPhone application that communicates to a Twisted socket and it works great when I have one message to send. However, my issue is I need to send many different bits of information to the app. Here is my code. if numrows == 1: #Did login msg = "%s: Login Credentials Success" % _UDID print msg for c in self.factory.clients: c.message(msg) time.sleep(0.5) for result in results: for i in range(1, 6): msg = "%s:L%d;%s" % (_UDID, i, result[i]) print msg for c in self.factory.clients: