Commit 978e14bc authored by Denis Bilenko's avatar Denis Bilenko

server: minor docstring fixes

parent 1fc3dcc3
# Copyright (c) 2009-2010 Denis Bilenko. See LICENSE for details. # Copyright (c) 2009-2010 Denis Bilenko. See LICENSE for details.
"""TCP/SSL server"""
import sys import sys
import errno import errno
import traceback import traceback
...@@ -11,12 +12,12 @@ __all__ = ['StreamServer'] ...@@ -11,12 +12,12 @@ __all__ = ['StreamServer']
class StreamServer(BaseServer): class StreamServer(BaseServer):
"""A generic TCP server. Accepts connections on a listening socket and spawns user's handler for each connection. """A generic TCP server. Accepts connections on a listening socket and spawns user-provided *handle*
for each connection with 2 arguments: the client socket and the client address.
*handle* is called with 2 arguments: a client socket and an address.
If any of the following keyword arguments are present, then the server assumes SSL mode and uses these arguments If any of the following keyword arguments are present, then the server assumes SSL mode and uses these arguments
to create an SSL wrapper for a client socket before passing it to *handle*: to create an SSL wrapper for the client socket before passing it to *handle*:
- keyfile - keyfile
- certfile - certfile
- cert_reqs - cert_reqs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment