programming:python:py-prefork-server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
programming:python:py-prefork-server [2015/01/03 05:53] – [Hooks] jay | programming:python:py-prefork-server [2015/01/03 05:54] – [Hooks] jay | ||
---|---|---|---|
Line 87: | Line 87: | ||
== initialize(self) == | == initialize(self) == | ||
Rather than reimplementing __init__, which you can do instead, you can just override this and setup variables and such that you need to set up. This is the recommended approach. | Rather than reimplementing __init__, which you can do instead, you can just override this and setup variables and such that you need to set up. This is the recommended approach. | ||
+ | |||
+ | == pre_bind(self) == | ||
+ | This hook is called before the main socket is created and bound to the ip: | ||
+ | |||
+ | == post_bind(self) == | ||
+ | As you might have guessed, this is called right after the '' | ||
== post_accept(self) == | == post_accept(self) == |
programming/python/py-prefork-server.txt · Last modified: 2023/11/10 20:06 by jay