SILENT KILLERPanel

Current Path: > > opt > alt > > python35 > lib64 > python3.5 > idlelib > __pycache__


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt//python35/lib64/python3.5/idlelib/__pycache__

NameTypeSizeLast ModifiedActions
AutoComplete.cpython-35.opt-1.pyc File 7687 bytes May 31 2024 13:51:47.
AutoComplete.cpython-35.opt-2.pyc File 5986 bytes May 31 2024 13:51:29.
AutoComplete.cpython-35.pyc File 7687 bytes May 31 2024 13:51:52.
AutoCompleteWindow.cpython-35.opt-1.pyc File 11462 bytes May 31 2024 13:51:47.
AutoCompleteWindow.cpython-35.opt-2.pyc File 10708 bytes May 31 2024 13:51:29.
AutoCompleteWindow.cpython-35.pyc File 11518 bytes May 31 2024 13:51:52.
AutoExpand.cpython-35.opt-1.pyc File 3168 bytes May 31 2024 13:51:47.
AutoExpand.cpython-35.opt-2.pyc File 2378 bytes May 31 2024 13:51:29.
AutoExpand.cpython-35.pyc File 3168 bytes May 31 2024 13:51:52.
Bindings.cpython-35.opt-1.pyc File 3225 bytes May 31 2024 13:51:47.
Bindings.cpython-35.opt-2.pyc File 2744 bytes May 31 2024 13:51:29.
Bindings.cpython-35.pyc File 3225 bytes May 31 2024 13:51:52.
CallTipWindow.cpython-35.opt-1.pyc File 5361 bytes May 31 2024 13:51:47.
CallTipWindow.cpython-35.opt-2.pyc File 5061 bytes May 31 2024 13:51:29.
CallTipWindow.cpython-35.pyc File 5361 bytes May 31 2024 13:51:52.
CallTips.cpython-35.opt-1.pyc File 5921 bytes May 31 2024 13:51:47.
CallTips.cpython-35.opt-2.pyc File 4279 bytes May 31 2024 13:51:29.
CallTips.cpython-35.pyc File 5921 bytes May 31 2024 13:51:52.
ClassBrowser.cpython-35.opt-1.pyc File 8554 bytes May 31 2024 13:51:47.
ClassBrowser.cpython-35.opt-2.pyc File 8062 bytes May 31 2024 13:51:29.
ClassBrowser.cpython-35.pyc File 8554 bytes May 31 2024 13:51:52.
CodeContext.cpython-35.opt-1.pyc File 6126 bytes May 31 2024 13:51:47.
CodeContext.cpython-35.opt-2.pyc File 4990 bytes May 31 2024 13:51:29.
CodeContext.cpython-35.pyc File 6167 bytes May 31 2024 13:51:52.
ColorDelegator.cpython-35.opt-1.pyc File 8567 bytes May 31 2024 13:51:47.
ColorDelegator.cpython-35.opt-2.pyc File 8404 bytes May 31 2024 13:51:29.
ColorDelegator.cpython-35.pyc File 8567 bytes May 31 2024 13:51:52.
Debugger.cpython-35.opt-1.pyc File 15576 bytes May 31 2024 13:51:47.
Debugger.cpython-35.opt-2.pyc File 15417 bytes May 31 2024 13:51:29.
Debugger.cpython-35.pyc File 15576 bytes May 31 2024 13:51:52.
Delegator.cpython-35.opt-1.pyc File 1344 bytes May 31 2024 13:51:47.
Delegator.cpython-35.opt-2.pyc File 1236 bytes May 31 2024 13:51:29.
Delegator.cpython-35.pyc File 1344 bytes May 31 2024 13:51:52.
EditorWindow.cpython-35.opt-1.pyc File 52024 bytes May 31 2024 13:51:47.
EditorWindow.cpython-35.opt-2.pyc File 50741 bytes May 31 2024 13:51:29.
EditorWindow.cpython-35.pyc File 52120 bytes May 31 2024 13:51:52.
FileList.cpython-35.opt-1.pyc File 3580 bytes May 31 2024 13:51:47.
FileList.cpython-35.opt-2.pyc File 3572 bytes May 31 2024 13:51:29.
FileList.cpython-35.pyc File 3610 bytes May 31 2024 13:51:52.
FormatParagraph.cpython-35.opt-1.pyc File 6355 bytes May 31 2024 13:51:47.
FormatParagraph.cpython-35.opt-2.pyc File 4465 bytes May 31 2024 13:51:29.
FormatParagraph.cpython-35.pyc File 6355 bytes May 31 2024 13:51:52.
GrepDialog.cpython-35.opt-1.pyc File 5641 bytes May 31 2024 13:51:47.
GrepDialog.cpython-35.opt-2.pyc File 5633 bytes May 31 2024 13:51:29.
GrepDialog.cpython-35.pyc File 5641 bytes May 31 2024 13:51:52.
HyperParser.cpython-35.opt-1.pyc File 7400 bytes May 31 2024 13:51:47.
HyperParser.cpython-35.opt-2.pyc File 6083 bytes May 31 2024 13:51:29.
HyperParser.cpython-35.pyc File 7400 bytes May 31 2024 13:51:52.
IOBinding.cpython-35.opt-1.pyc File 15172 bytes May 31 2024 13:51:47.
IOBinding.cpython-35.opt-2.pyc File 14744 bytes May 31 2024 13:51:29.
IOBinding.cpython-35.pyc File 15172 bytes May 31 2024 13:51:52.
IdleHistory.cpython-35.opt-1.pyc File 3679 bytes May 31 2024 13:51:47.
IdleHistory.cpython-35.opt-2.pyc File 2442 bytes May 31 2024 13:51:29.
IdleHistory.cpython-35.pyc File 3679 bytes May 31 2024 13:51:52.
MultiCall.cpython-35.opt-1.pyc File 16475 bytes May 31 2024 13:51:47.
MultiCall.cpython-35.opt-2.pyc File 14100 bytes May 31 2024 13:51:29.
MultiCall.cpython-35.pyc File 16540 bytes May 31 2024 13:51:52.
MultiStatusBar.cpython-35.opt-1.pyc File 1935 bytes May 31 2024 13:51:47.
MultiStatusBar.cpython-35.opt-2.pyc File 1927 bytes May 31 2024 13:51:29.
MultiStatusBar.cpython-35.pyc File 1935 bytes May 31 2024 13:51:52.
ObjectBrowser.cpython-35.opt-1.pyc File 5512 bytes May 31 2024 13:51:47.
ObjectBrowser.cpython-35.opt-2.pyc File 5504 bytes May 31 2024 13:51:29.
ObjectBrowser.cpython-35.pyc File 5512 bytes May 31 2024 13:51:52.
OutputWindow.cpython-35.opt-1.pyc File 4523 bytes May 31 2024 13:51:47.
OutputWindow.cpython-35.opt-2.pyc File 4340 bytes May 31 2024 13:51:29.
OutputWindow.cpython-35.pyc File 4523 bytes May 31 2024 13:51:52.
ParenMatch.cpython-35.opt-1.pyc File 6450 bytes May 31 2024 13:51:47.
ParenMatch.cpython-35.opt-2.pyc File 5015 bytes May 31 2024 13:51:29.
ParenMatch.cpython-35.pyc File 6450 bytes May 31 2024 13:51:52.
PathBrowser.cpython-35.opt-1.pyc File 4106 bytes May 31 2024 13:51:47.
PathBrowser.cpython-35.opt-2.pyc File 3957 bytes May 31 2024 13:51:29.
PathBrowser.cpython-35.pyc File 4106 bytes May 31 2024 13:51:52.
Percolator.cpython-35.opt-1.pyc File 3911 bytes May 31 2024 13:51:47.
Percolator.cpython-35.opt-2.pyc File 3903 bytes May 31 2024 13:51:29.
Percolator.cpython-35.pyc File 4084 bytes May 31 2024 13:51:52.
PyParse.cpython-35.opt-1.pyc File 10967 bytes May 31 2024 13:51:47.
PyParse.cpython-35.opt-2.pyc File 10085 bytes May 31 2024 13:51:30.
PyParse.cpython-35.pyc File 11409 bytes May 31 2024 13:51:52.
PyShell.cpython-35.opt-1.pyc File 48124 bytes May 31 2024 13:51:47.
PyShell.cpython-35.opt-2.pyc File 45535 bytes May 31 2024 13:51:30.
PyShell.cpython-35.pyc File 48263 bytes May 31 2024 13:51:52.
RemoteDebugger.cpython-35.opt-1.pyc File 14510 bytes May 31 2024 13:51:47.
RemoteDebugger.cpython-35.opt-2.pyc File 12109 bytes May 31 2024 13:51:30.
RemoteDebugger.cpython-35.pyc File 14652 bytes May 31 2024 13:51:52.
RemoteObjectBrowser.cpython-35.opt-1.pyc File 2009 bytes May 31 2024 13:51:47.
RemoteObjectBrowser.cpython-35.opt-2.pyc File 2001 bytes May 31 2024 13:51:30.
RemoteObjectBrowser.cpython-35.pyc File 2009 bytes May 31 2024 13:51:52.
ReplaceDialog.cpython-35.opt-1.pyc File 7645 bytes May 31 2024 13:51:47.
ReplaceDialog.cpython-35.opt-2.pyc File 6961 bytes May 31 2024 13:51:30.
ReplaceDialog.cpython-35.pyc File 7645 bytes May 31 2024 13:51:52.
RstripExtension.cpython-35.opt-1.pyc File 1353 bytes May 31 2024 13:51:47.
RstripExtension.cpython-35.opt-2.pyc File 1265 bytes May 31 2024 13:51:30.
RstripExtension.cpython-35.pyc File 1353 bytes May 31 2024 13:51:52.
ScriptBinding.cpython-35.opt-1.pyc File 7066 bytes May 31 2024 13:51:47.
ScriptBinding.cpython-35.opt-2.pyc File 5675 bytes May 31 2024 13:51:30.
ScriptBinding.cpython-35.pyc File 7066 bytes May 31 2024 13:51:52.
ScrolledList.cpython-35.opt-1.pyc File 5759 bytes May 31 2024 13:51:47.
ScrolledList.cpython-35.opt-2.pyc File 5751 bytes May 31 2024 13:51:30.
ScrolledList.cpython-35.pyc File 5759 bytes May 31 2024 13:51:52.
SearchDialog.cpython-35.opt-1.pyc File 3782 bytes May 31 2024 13:51:47.
SearchDialog.cpython-35.opt-2.pyc File 3522 bytes May 31 2024 13:51:30.
SearchDialog.cpython-35.pyc File 3782 bytes May 31 2024 13:51:52.
SearchDialogBase.cpython-35.opt-1.pyc File 7695 bytes May 31 2024 13:51:47.
SearchDialogBase.cpython-35.opt-2.pyc File 4987 bytes May 31 2024 13:51:30.
SearchDialogBase.cpython-35.pyc File 7695 bytes May 31 2024 13:51:52.
SearchEngine.cpython-35.opt-1.pyc File 7413 bytes May 31 2024 13:51:47.
SearchEngine.cpython-35.opt-2.pyc File 5751 bytes May 31 2024 13:51:30.
SearchEngine.cpython-35.pyc File 7413 bytes May 31 2024 13:51:52.
StackViewer.cpython-35.opt-1.pyc File 5592 bytes May 31 2024 13:51:47.
StackViewer.cpython-35.opt-2.pyc File 5584 bytes May 31 2024 13:51:30.
StackViewer.cpython-35.pyc File 5592 bytes May 31 2024 13:51:52.
ToolTip.cpython-35.opt-1.pyc File 4043 bytes May 31 2024 13:51:47.
ToolTip.cpython-35.opt-2.pyc File 4035 bytes May 31 2024 13:51:30.
ToolTip.cpython-35.pyc File 4043 bytes May 31 2024 13:51:52.
TreeWidget.cpython-35.opt-1.pyc File 15618 bytes May 31 2024 13:51:47.
TreeWidget.cpython-35.opt-2.pyc File 14833 bytes May 31 2024 13:51:30.
TreeWidget.cpython-35.pyc File 15618 bytes May 31 2024 13:51:52.
UndoDelegator.cpython-35.opt-1.pyc File 11891 bytes May 31 2024 13:51:47.
UndoDelegator.cpython-35.opt-2.pyc File 11883 bytes May 31 2024 13:51:30.
UndoDelegator.cpython-35.pyc File 11891 bytes May 31 2024 13:51:52.
WidgetRedirector.cpython-35.opt-1.pyc File 7120 bytes May 31 2024 13:51:47.
WidgetRedirector.cpython-35.opt-2.pyc File 3671 bytes May 31 2024 13:51:30.
WidgetRedirector.cpython-35.pyc File 7120 bytes May 31 2024 13:51:52.
WindowList.cpython-35.opt-1.pyc File 3231 bytes May 31 2024 13:51:47.
WindowList.cpython-35.opt-2.pyc File 3223 bytes May 31 2024 13:51:30.
WindowList.cpython-35.pyc File 3231 bytes May 31 2024 13:51:52.
ZoomHeight.cpython-35.opt-1.pyc File 1402 bytes May 31 2024 13:51:47.
ZoomHeight.cpython-35.opt-2.pyc File 1394 bytes May 31 2024 13:51:30.
ZoomHeight.cpython-35.pyc File 1402 bytes May 31 2024 13:51:52.
__init__.cpython-35.opt-1.pyc File 452 bytes May 31 2024 13:51:47.
__init__.cpython-35.opt-2.pyc File 141 bytes May 31 2024 13:51:30.
__init__.cpython-35.pyc File 452 bytes May 31 2024 13:51:52.
__main__.cpython-35.opt-1.pyc File 279 bytes May 31 2024 13:51:47.
__main__.cpython-35.opt-2.pyc File 198 bytes May 31 2024 13:51:30.
__main__.cpython-35.pyc File 279 bytes May 31 2024 13:51:52.
aboutDialog.cpython-35.opt-1.pyc File 6077 bytes May 31 2024 13:51:47.
aboutDialog.cpython-35.opt-2.pyc File 5906 bytes May 31 2024 13:51:30.
aboutDialog.cpython-35.pyc File 6077 bytes May 31 2024 13:51:52.
configDialog.cpython-35.opt-1.pyc File 49329 bytes May 31 2024 13:51:47.
configDialog.cpython-35.opt-2.pyc File 46576 bytes May 31 2024 13:51:30.
configDialog.cpython-35.pyc File 49329 bytes May 31 2024 13:51:52.
configHandler.cpython-35.opt-1.pyc File 26882 bytes May 31 2024 13:51:47.
configHandler.cpython-35.opt-2.pyc File 18679 bytes May 31 2024 13:51:30.
configHandler.cpython-35.pyc File 26882 bytes May 31 2024 13:51:52.
configHelpSourceEdit.cpython-35.opt-1.pyc File 5905 bytes May 31 2024 13:51:47.
configHelpSourceEdit.cpython-35.opt-2.pyc File 5398 bytes May 31 2024 13:51:30.
configHelpSourceEdit.cpython-35.pyc File 5905 bytes May 31 2024 13:51:52.
configSectionNameDialog.cpython-35.opt-1.pyc File 3932 bytes May 31 2024 13:51:47.
configSectionNameDialog.cpython-35.opt-2.pyc File 3294 bytes May 31 2024 13:51:30.
configSectionNameDialog.cpython-35.pyc File 3932 bytes May 31 2024 13:51:52.
dynOptionMenuWidget.cpython-35.opt-1.pyc File 2428 bytes May 31 2024 13:51:47.
dynOptionMenuWidget.cpython-35.opt-2.pyc File 2036 bytes May 31 2024 13:51:30.
dynOptionMenuWidget.cpython-35.pyc File 2428 bytes May 31 2024 13:51:52.
help.cpython-35.opt-1.pyc File 10980 bytes May 31 2024 13:51:47.
help.cpython-35.opt-2.pyc File 8229 bytes May 31 2024 13:51:30.
help.cpython-35.pyc File 10980 bytes May 31 2024 13:51:52.
idle.cpython-35.opt-1.pyc File 372 bytes May 31 2024 13:51:47.
idle.cpython-35.opt-2.pyc File 364 bytes May 31 2024 13:51:30.
idle.cpython-35.pyc File 372 bytes May 31 2024 13:51:52.
idlever.cpython-35.opt-1.pyc File 551 bytes May 31 2024 13:51:47.
idlever.cpython-35.opt-2.pyc File 320 bytes May 31 2024 13:51:30.
idlever.cpython-35.pyc File 551 bytes May 31 2024 13:51:52.
keybindingDialog.cpython-35.opt-1.pyc File 10963 bytes May 31 2024 13:51:47.
keybindingDialog.cpython-35.opt-2.pyc File 10003 bytes May 31 2024 13:51:30.
keybindingDialog.cpython-35.pyc File 10963 bytes May 31 2024 13:51:52.
macosxSupport.cpython-35.opt-1.pyc File 7170 bytes May 31 2024 13:51:47.
macosxSupport.cpython-35.opt-2.pyc File 5255 bytes May 31 2024 13:51:30.
macosxSupport.cpython-35.pyc File 7285 bytes May 31 2024 13:51:52.
rpc.cpython-35.opt-1.pyc File 20833 bytes May 31 2024 13:51:47.
rpc.cpython-35.opt-2.pyc File 17434 bytes May 31 2024 13:51:30.
rpc.cpython-35.pyc File 20936 bytes May 31 2024 13:51:52.
run.cpython-35.opt-1.pyc File 12742 bytes May 31 2024 13:51:47.
run.cpython-35.opt-2.pyc File 10814 bytes May 31 2024 13:51:30.
run.cpython-35.pyc File 12792 bytes May 31 2024 13:51:52.
tabbedpages.cpython-35.opt-1.pyc File 17076 bytes May 31 2024 13:51:47.
tabbedpages.cpython-35.opt-2.pyc File 12070 bytes May 31 2024 13:51:30.
tabbedpages.cpython-35.pyc File 17076 bytes May 31 2024 13:51:52.
textView.cpython-35.opt-1.pyc File 3463 bytes May 31 2024 13:51:47.
textView.cpython-35.opt-2.pyc File 3016 bytes May 31 2024 13:51:30.
textView.cpython-35.pyc File 3463 bytes May 31 2024 13:51:52.

Reading File: //opt/alt//python35/lib64/python3.5/idlelib/__pycache__/rpc.cpython-35.pyc



��Yf0Q�@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZdd�Zdd�Zddd�ZGd	d
�d
ej�ZddZd
ZGdd�dej�ZiZe
jd�Ze
jd�ZGdd�de�ZGdd�de�Zdd�Z Gdd�de�Z!Gdd�dej"e�Z#Gdd�de�Z$Gdd�de�Z%dd�Z&d d!�Z'Gd"d#�d#e�Z(d$d%�Z)dS)&aRPC 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.

�NcCs+tj|�}t|tj�s't�|S)N)�marshal�loads�
isinstance�types�CodeType�AssertionError)�ms�co�r
�0/opt/alt/python35/lib64/python3.5/idlelib/rpc.py�
unpickle_code/srcCs4t|tj�st�tj|�}t|ffS)N)rrrrr�dumpsr)r	rr
r
r�pickle_code4srcCs2tj�}t||�}|j|�|j�S)N)�io�BytesIO�CodePickler�dump�getvalue)�objZprotocol�f�pr
r
rr
9s
r
c@s/eZdZejeiZejej�dS)rN)	�__name__�
__module__�__qualname__rrr�dispatch_table�update�copyregr
r
r
rr?sr�iz	127.0.0.1c@sOeZdZddd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�	RPCServerNcCs,|dkrt}tjj|||�dS)N)�
RPCHandler�socketserver�	TCPServer�__init__)�self�addrZhandlerclassr
r
rr"HszRPCServer.__init__cCsdS)z@Override TCPServer method, no bind() phase for connecting entityNr
)r#r
r
r�server_bindMszRPCServer.server_bindcCs|jj|j�dS)z�Override 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)�socketZconnect�server_address)r#r
r
r�server_activateQszRPCServer.server_activatecCs|j|jfS)z:Override TCPServer method, return already connected socket)r&r')r#r
r
r�get_requestZszRPCServer.get_requestcCs�y�Wn�tk
r�Yn�tj}tdddd|�tdd|�tdtj�jd|�td|d|�tdt|�d|�tj	d|�td	d|�tddd|�t
jd
�YnXdS)z�Override 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.

        �
�-�(�filezUnhandled server exception!z
Thread: %szClient Address: z	Request: z#
*** Unrecoverable, server exiting!rN)�
SystemExit�sys�
__stderr__�print�	threading�current_thread�name�repr�	traceback�	print_exc�os�_exit)r#�requestZclient_addressZerfr
r
r�handle_error^s
	zRPCServer.handle_error)rrrr"r%r(r)r;r
r
r
rrFs
	rc@sreZdZdZdddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+Zd,ZdZd-d.�Zd/d0�Zd1d2�Zd3d4�Zd5d6�Zd7d8�Z d9d:�Z!dS);�SocketIOrNcCs^tj�|_|dk	r$||_||_|dkr?t}||_i|_i|_dS)N)	r2r3�
sockthread�	debugging�sock�objecttable�objtable�	responses�cvars)r#r?rAr>r
r
rr"�s				zSocketIO.__init__cCs,|j}d|_|dk	r(|j�dS)N)r?�close)r#r?r
r
rrD�s		zSocketIO.closecCstjd�dS)z!override for specific exit actionrN)r8r9)r#r
r
r�exithook�szSocketIO.exithookcGsi|js
dS|jdttj�j�}x"|D]}|dt|�}q4Wt|dtj�dS)N� r-)	r>�location�strr2r3r4r1r/r0)r#�args�s�ar
r
r�debug�s	 
zSocketIO.debugcCs||j|<dS)N)rA)r#�oid�objectr
r
r�register�szSocketIO.registercCs'y|j|=Wntk
r"YnXdS)N)rA�KeyError)r#rMr
r
r�
unregister�s
zSocketIO.unregistercCs'|jd|�y|\}\}}}}Wntk
rDdSYnX||jkredd|ffS|j|}|dkr�i}	t||	�d|	fS|dkr�i}
t||
�d|
fSt||�s�dd|ffSt||�}y~|d	kr6|||�}t|t�r,t	|�}d|fS|d
krbt
j||||ff�dSdd|fSWn�tk
r��Yn�t
k
r��Yn�tk
r��Ynstk
r�}
zd
|
fSWYdd}
~
XnEd}t||||fdtj�tjdtj�dSYnXdS)Nz
localcall:�ERROR�Bad request formatzUnknown object id: %r�__methods__�OK�__attributes__zUnsupported method name: %r�CALL�QUEUE�QUEUEDzUnsupported message type: %s�CALLEXCzU*** Internal Error: rpc.py:SocketIO.localcall()

 Object: %s 
 Method: %s 
 Args: %s
r-�	EXCEPTION)rRrS)rYN)r[N)rL�	TypeErrorrA�_getmethods�_getattributes�hasattr�getattrr�RemoteObject�	remoteref�
request_queueZputr.�KeyboardInterrupt�OSError�	Exceptionr1r/r0r6r7)r#�seqr:�howrM�
methodnamerI�kwargsr�methods�
attributes�methodZretZex�msgr
r
r�	localcall�sT
	








 zSocketIO.localcallcCs8|jd||�|j||||�}|j|�S)Nzremotecall:asynccall: )rL�	asynccall�asyncreturn)r#rMrirIrjrgr
r
r�
remotecall�szSocketIO.remotecallcCs8|jd||�|j||||�}|j|�S)Nzremotequeue:asyncqueue: )rL�
asyncqueuerq)r#rMrirIrjrgr
r
r�remotequeue�szSocketIO.remotequeuecCs�d||||ff}|j�}tj�|jkrRtj�}||j|<|jd|||||�|j||f�|S)NrWz
asynccall:%d:)�newseqr2r3r=�	ConditionrCrL�
putmessage)r#rMrirIrjr:rg�cvarr
r
rrp�s
zSocketIO.asynccallcCs�d||||ff}|j�}tj�|jkrRtj�}||j|<|jd|||||�|j||f�|S)NrXzasyncqueue:%d:)rur2r3r=rvrCrLrw)r#rMrirIrjr:rgrxr
r
rrs�s
zSocketIO.asyncqueuecCsG|jd|�|j|dd�}|jd||�|j|�S)Nz#asyncreturn:%d:call getresponse(): �waitg�������?zasyncreturn:%d:response: )rL�getresponse�decoderesponse)r#rg�responser
r
rrq�szSocketIO.asyncreturncCs�|\}}|dkr|S|dkr,dS|dkrI|jd�dS|dkrp|jd�|j�dS|dkr�|jd|�t|��|d	kr�|jd
|�|�t||��dS)NrUrYr[zdecoderesponse: EXCEPTION�EOFzdecoderesponse: EOFrRzdecoderesponse: Internal ERROR:rZzdecoderesponse: Call Exception:)rL�decode_interrupthook�RuntimeError�SystemError)r#r|rh�whatr
r
rr{�s&


zSocketIO.decoderesponsecCs
t�dS)�N)�EOFError)r#r
r
rr~szSocketIO.decode_interrupthookcCsDy|jdddd�Wn#tk
r?|jd�dSYnXdS)z�Listen on socket until I/O not ready or EOF

        pollresponse() will loop looking for seq number None, which
        never comes, and exit on EOFError.

        �myseqNryg�������?zmainloop:return)rzr�rL)r#r
r
r�mainloops


zSocketIO.mainloopcCsO|j||�}|dk	rK|\}}|dkrK||j|�f}|S)NrU)�_getresponse�_proxify)r#r�ryr|rhr�r
r
rrzszSocketIO.getresponsecCsHt|t�rt||j�St|t�rDtt|j|��S|S)N)r�RemoteProxy�RPCProxyrM�list�mapr�)r#rr
r
rr�'s
zSocketIO._proxifycCs�|jd|�tj�|jkrQx�|j||�}|dk	r(|Sq(Wn}|j|}|j�x||jkr�|j�qkW|j|}|jd||f�|j|=|j|=|j	�|SdS)Nz_getresponse:myseq:z-_getresponse:%s: thread woke up: response: %s)
rLr2r3r=�pollresponserC�acquirerBry�release)r#r�ryr|rxr
r
rr�/s"


	


zSocketIO._getresponsecCs|jd|_}|S)N�)�nextseq)r#rgr
r
rruEszSocketIO.newseqcCs|jd|d�yt|�}Wn4tjk
r[tdt|�dtj��YnXtj	dt
|��|}x�t
|�dkryDtjg|jgg�\}}}|jj
|dt��}Wn$ttfk
r�td��YnX||d�}q{WdS)Nzputmessage:%d:rzCannot pickle:r-z<izsocket no longer exists)rLr
�pickleZ
PicklingErrorr1r5r/r0�structZpack�len�selectr?�send�BUFSIZE�AttributeErrorr\re)r#�messagerJ�r�w�x�nr
r
rrwIs$ zSocketIO.putmessage��cCs�|j�t|j�|jkr�tj|jj�ggg|�\}}}t|�dkredSy|jjt�}Wnt	k
r�t
�YnXt|�dkr�t
�|j|7_|j�|j�S)Nr)�_stage0r��buff�bufneedr�r?�filenoZrecvr�rer��_stage1)r#ryr�r�r�rJr
r
r�
pollpacket]s
-

zSocketIO.pollpacketcCss|jdkrot|j�dkro|jdd�}|jdd�|_tjd|�d|_d|_dS)Nrr�z<i�)�bufstater�r�r�Zunpackr�)r#rJr
r
rr�ms
$zSocketIO._stage0cCsp|jdkrlt|j�|jkrl|jd|j�}|j|jd�|_d|_d|_|SdS)Nr�r�r)r�r�r�r�)r#�packetr
r
rr�ts'		zSocketIO._stage1cCs�|j|�}|dkrdSytj|�}Wnmtjk
r�tddtj�tdt|�dtj�tj	dtj�tddtj��YnX|S)Nz-----------------------r-zcannot unpickle packet:)
r�r�rZUnpicklingErrorr1r/r0r5r6�print_stack)r#ryr�r�r
r
r�pollmessage|szSocketIO.pollmessagec
Cs�x�ytjd�}Wntjk
r-Yn,X|\}}|d|ff}|j|�y#|j|�}|dkr{dSWn5tk
r�|j�dSYntk
r�dSYnX|\}}|d}|j	d||f�|d	kr[|j	d|�|j
||�}|j	d||f�|dkrI|j||f�q|dkrqq||krk|S|jj|d�}	|	dk	r|	j�||j
|<|	j�|	j�qqWdS)
aRHandle messages received on the socket.

        Some messages received may be asynchronous 'call' or 'queue' requests,
        and some may be responses for other threads.

        'call' requests are passed to self.localcall() with the expectation of
        immediate execution, during which time the socket is not serviced.

        'queue' requests are used for tasks (which may block or hang) to be
        processed in a different thread.  These requests are fed into
        request_queue by self.localcall().  Responses to queued requests are
        taken from response_queue and sent across the link with the associated
        sequence numbers.  Messages in the queues are (sequence_number,
        request/response) tuples and code using this module removing messages
        from the request_queue is responsible for returning the correct
        sequence number in the response_queue.

        pollresponse() will loop until a response message with the myseq
        sequence number is received, and will save other responses in
        self.responses and notify the owning thread.

        rrUNzpollresponse:%d:myseq:%srWrXzpollresponse:%d:localcall:call:z%pollresponse:%d:localcall:response:%s)rWrX)�response_queue�get�queueZEmptyrwr�r��
handle_EOFr�rLrorCr�rB�notifyr�)
r#r�ryZqmsgrgr|r�Zresqrh�cvr
r
rr��sL



	
	



zSocketIO.pollresponsecCsq|j�|jd�xI|jD]>}|j|}|j�d|j|<|j�|j�q!W|j�dS)z+action taken upon link being closed by peerr�r}N)r}N)�EOFhookrLrCr�rBr�r�rE)r#�keyr�r
r
rr��s





zSocketIO.handle_EOFcCsdS)zBClasses using rpc client/server can override to augment EOF actionNr
)r#r
r
rr��szSocketIO.EOFhook)"rrrr�r"rDrErLrOrQrorrrtrprsrqr{r~r�rzr�r�rurwr�r�r�r�r�r�r�r�r�r�r
r
r
rr<}s>.


I
r<c@seZdZdS)raN)rrrr
r
r
rra�sracCs t|�}|t|<t|�S)N)�idr@r�)rrMr
r
rrb�s
rbc@seZdZdd�ZdS)r�cCs
||_dS)N)rM)r#rMr
r
rr"�szRemoteProxy.__init__N)rrrr"r
r
r
rr��sr�c@s@eZdZdZdZdd�Zdd�Zdd�Zd	S)
rFz#ScCs6||_tj||�tjj||||�dS)N)Zcurrent_handlerr<r"r �BaseRequestHandler)r#r?r$Zsvrr
r
rr"�s	zRPCHandler.__init__cCs|j�dS)z(handle() method required by socketserverN)r�)r#r
r
r�handle�szRPCHandler.handlecCs
t||�S)N)r�)r#rMr
r
r�get_remote_proxyszRPCHandler.get_remote_proxyN)rrrr>rGr"r�r�r
r
r
rr�s
rc@sReZdZdZdZdZejejdd�Z	dd�Z
dd	�Zd
S)�	RPCClientFz#Cr�cCs9tj||�|_|jj|�|jjd�dS)Nr�)r&�listening_sockZbindZlisten)r#�addressZfamily�typer
r
rr"szRPCClient.__init__cCsw|jj�\}}|jr4td|dtj�|dtkrWtj||�ntd|dtj�t	�dS)Nz****** Connection request from r-rz** Invalid host: )
r��acceptr>r1r/r0�	LOCALHOSTr<r"re)r#Zworking_sockr�r
r
rr�s	zRPCClient.acceptcCs
t||�S)N)r�)r#rMr
r
rr�szRPCClient.get_remote_proxyN)rrrr>rGr�r&ZAF_INETZSOCK_STREAMr"r�r�r
r
r
rr�s
r�c@sLeZdZdZdZdd�Zdd�Zdd�Zdd	�ZdS)
r�NcCs||_||_dS)N)�sockiorM)r#r�rMr
r
rr"#s	zRPCProxy.__init__cCs�|jdkr|j�|jj|�rAt|j|j|�S|jdkrZ|j�||jkr�|jj|jd|fi�}|St	|��dS)N�__getattribute__)
�_RPCProxy__methods�_RPCProxy__getmethodsr��MethodProxyr�rM�_RPCProxy__attributes�_RPCProxy__getattributesrrr�)r#r4�valuer
r
r�__getattr__'s

zRPCProxy.__getattr__cCs%|jj|jdfi�|_dS)NrV)r�rrrMr�)r#r
r
rZ__getattributes5szRPCProxy.__getattributescCs%|jj|jdfi�|_dS)NrT)r�rrrMr�)r#r
r
rZ__getmethods9szRPCProxy.__getmethods)	rrrr�r�r"r�r�r�r
r
r
rr�sr�cCspx9t|�D]+}t||�}t|�r
d||<q
Wt|t�rlx|jD]}t||�qUWdS)Nr�)�dirr`�callablerr��	__bases__r])rrkr4�attr�superr
r
rr]=sr]cCs@x9t|�D]+}t||�}t|�s
d||<q
WdS)Nr�)r�r`r�)rrlr4r�r
r
rr^Hsr^c@s(eZdZdd�Zdd�ZdS)r�cCs||_||_||_dS)N)r�rMr4)r#r�rMr4r
r
rr"Ps		zMethodProxy.__init__cOs%|jj|j|j||�}|S)N)r�rrrMr4)r#rIrjr�r
r
r�__call__Us!zMethodProxy.__call__N)rrrr"r�r
r
r
rr�Nsr�cCs�|dkrdSdt_t|�}ytjj|�WnLtk
r�d}|j|d�}|j|d�}tjj|�YnXtjjd�|t_dS)z9Override standard display hook to use non-locale encodingN�ascii�backslashreplace�strictr*)	�builtins�_r5r/�stdout�write�UnicodeEncodeError�encode�decode)r��text�encoding�bytesr
r
r�displayhook]s	
r�)*�__doc__r/r8rr&r�r r�r�r2r�r6rrrr�rrr
ZPicklerrr�r�r!rr@ZQueuercr�rNr<rarbr�r�rr�r�r]r^r�r�r
r
r
r�<module>sJ
2�j

SILENT KILLER Tool