Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
U
i_|R @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZdd Zdd Zd*ddZG d d
d
ejZdZdZG d
d de
jZi ZedZedZG dd deZG dd deZdd Z G dd deZ!G dd de
j"eZ#G dd deZ$G dd deZ%dd Z&dd Z'G d!d" d"eZ(d#d$ Z)e*d%krdd&l+m,Z, e,d'd(d) dS )+a RPC Implementation, originally written for the Python Idle IDE
For security reasons, GvR requested that Idle's Python execution server process
connect to the Idle process, which listens for the connection. Since Idle has
only one client per server, this was not a limitation.
+---------------------------------+ +-------------+
| socketserver.BaseRequestHandler | | SocketIO |
+---------------------------------+ +-------------+
^ | register() |
| | unregister()|
| +-------------+
| ^ ^
| | |
| + -------------------+ |
| | |
+-------------------------+ +-----------------+
| RPCHandler | | RPCClient |
| [attribute of RPCServer]| | |
+-------------------------+ +-----------------+
The RPCServer handler class is expected to provide register/unregister methods.
RPCHandler inherits the mix-in class SocketIO, which provides these methods.
See the Idle run.main() docstring for further information on how this was
accomplished in Idle.
Nc C s t | }|S )z*Return code object from marshal string ms.)marshalloads)msco r */opt/python38/lib/python3.8/idlelib/rpc.py
unpickle_code- s
r c C s t | }t|ffS )zBReturn unpickle function and tuple with marshalled co code object.)r dumpsr )r r r r r pickle_code3 s
r
c C s$ t }t||}|| | S )z.Return pickled (or marshalled) string for obj.)ioBytesIOCodePicklerdumpgetvalue)objprotocolfpr r r r 9 s
r c @ s e Zd ZejeiejZdS )r
N)__name__
__module____qualname__typesCodeTyper
copyregdispatch_tabler r r r r
B s r
i z 127.0.0.1c @ s6 e Zd ZdddZdd Zdd Zdd Zd
d ZdS )
RPCServerNc C s |d krt }tj| || d S N)
RPCHandlersocketserver TCPServer__init__)selfaddrZhandlerclassr r r r K s zRPCServer.__init__c C s dS )z@Override TCPServer method, no bind() phase for connecting entityNr r! r r r server_bindP s zRPCServer.server_bindc C s | j | j dS )zOverride TCPServer method, connect() instead of listen()
Due to the reversed connection, self.server_address is actually the
address of the Idle Client to which we are connecting.
N)socketconnectserver_addressr# r r r server_activateT s zRPCServer.server_activatec C s | j | jfS )z:Override TCPServer method, return already connected socket)r% r' r# r r r get_request] s zRPCServer.get_requestc C s z W n t k
r Y n tj}td|d td|d tdt j |d td||d tdt||d tj |d td|d td|d t
d Y nX d
S )zOverride TCPServer method
Error message goes to __stderr__. No error message if exiting
normally or socket raised EOF. Other exceptions not handled in
server code will cause os._exit.
z)
----------------------------------------filezUnhandled server exception!z
Thread: %szClient Address: z Request: z#
*** Unrecoverable, server exiting!z(----------------------------------------r N)
SystemExitsys
__stderr__print threadingcurrent_threadnamerepr traceback print_excos_exit)r! requestZclient_addresserfr r r handle_errora s zRPCServer.handle_error)N)r r r r r$ r( r) r: r r r r r I s
r c @ s e Zd ZdZd;ddZdd Zdd Zd d
Zdd Zd
d Z dd Z
dd Zdd Zdd Z
dd Zdd Zdd Zdd Zdd Zd!d" Zd#d$ Zd%d&