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/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
B
fR @ 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 | }t|tjst|S )z*Return code object from marshal string ms.)marshalloads
isinstancetypesCodeTypeAssertionError)msco r
0/opt/alt/python37/lib64/python3.7/idlelib/rpc.py
unpickle_code- s
r c C s$ t | tjstt| }t|ffS )zBReturn unpickle function and tuple with marshalled co code object.)r r r r 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)objZprotocolfpr
r
r r
9 s
r
c @ s" e Zd ZejeiZeej dS )r N) __name__
__module____qualname__r r r dispatch_tableupdatecopyregr
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! L s zRPCServer.__init__c C s dS )z@Override TCPServer method, no bind() phase for connecting entityNr
)r" r
r
r server_bindQ 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)socketZconnectserver_address)r" r
r
r server_activateU s zRPCServer.server_activatec C s | j | jfS )z:Override TCPServer method, return already connected socket)r% r&