Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(2)  |  Import(2)
A non-blocking, single-threaded TCP server.

To use `TCPServer`, define a subclass which overrides the `handle_stream`
method.

To make this server serve SSL traffic, send the ssl_options dictionary
argument with the arguments required for the `ssl.wrap_socket` method,
including "certfile" and "keyfile"::

TCPServer(ssl_options={(more...)

src/p/y/pyrox-0.4.5/pyrox/server/proxyng.py   pyrox(Download)
from pyrox.tstream.iostream import (SSLSocketIOHandler, SocketIOHandler,
                                    StreamClosedError)
from pyrox.tstream.tcpserver import TCPServer
 
from pyrox.log import get_logger
class TornadoHttpProxy(TCPServer):
    """
    Subclass of the Tornado TCPServer that lets us set up the Pyrox proxy
    orchestrations.
 

src/p/y/pyrox-HEAD/pyrox/server/proxyng.py   pyrox(Download)
from pyrox.tstream.iostream import (SSLSocketIOHandler, SocketIOHandler,
                                    StreamClosedError)
from pyrox.tstream.tcpserver import TCPServer
 
from pyrox.log import get_logger
class TornadoHttpProxy(TCPServer):
    """
    Subclass of the Tornado TCPServer that lets us set up the Pyrox proxy
    orchestrations.