KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
i want to know tornado's internal workflow, and have seen this article , it's great, but something i just can't figure out within the ioloop.py, there is such a function def add_handler(self, fd, handler, events): """Registers the given handler to receive the given events for fd.""" self._handlers[fd] = handler self._impl.register(fd, events | self.ERROR) so what's this mean? every request will trigger add_handler or it's just triggered once when init? every socket connect will generate a file descriptor , or it's just generated once? what's the relationship between ioloop and iostream ? how does httpserver work with ioloop and iostream ? is there any workflow chart, so i can see it clearly ? sorry for these questiones, i just confused any link, suggestion, tip helps. many thanks :)
Tags (comma-separated)
Save Edits
Cancel