HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/conch/ssh/__pycache__/service.cpython-38.pyc
U


W[��@s6dZddlmZmZddlmZGdd�dej�ZdS)z�
The parent class for all the SSH services.  Currently implemented services
are ssh-userauth and ssh-connection.

Maintainer: Paul Swartz
�)�division�absolute_import)�logc@s8eZdZdZiZdZdd�Zdd�Zdd�Zdd	�Z	dS)
�
SSHServiceNcCsdS)zE
        called when the service is active on the transport.
        N���selfrr�;/usr/lib/python3/dist-packages/twisted/conch/ssh/service.py�serviceStartedszSSHService.serviceStartedcCsdS)z�
        called when the service is stopped, either by the connection ending
        or by another service being started
        Nrrrrr	�serviceStoppedszSSHService.serviceStoppedcCsd|j|jj��fS)NzSSHService %r on %s)�name�	transport�	logPrefixrrrr	rs
�zSSHService.logPrefixcCsf||jkr<|j|}t|d|dd�d�}|dk	r<||�St�d|�t�t|��|j��dS)zB
        called when we receive a packet on the transport
        zssh_%s�Nzcouldn't handle %r)�protocolMessages�getattrr�msg�reprr
ZsendUnimplemented)rZ
messageNumZpacketZmessageType�frrr	�packetReceived#s

�zSSHService.packetReceived)
�__name__�
__module__�__qualname__rrr
r
rrrrrrr	rsrN)�__doc__Z
__future__rrZtwisted.pythonrZLoggerrrrrr	�<module>s