HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/conch/ssh/__pycache__/service.cpython-310.pyc
o

�b�@s.dZddlmZddlmZGdd�d�ZdS)z�
The parent class for all the SSH services.  Currently implemented services
are ssh-userauth and ssh-connection.

Maintainer: Paul Swartz
�)�Dict)�Loggerc@sXeZdZUdZeed<iZeee	fed<dZ
e�Zdd�Z
dd�Zdd	�Zd
d�ZdS)�
SSHServiceN�name�protocolMessagescC�dS)zE
        called when the service is active on the transport.
        N���selfrr�;/usr/lib/python3/dist-packages/twisted/conch/ssh/service.py�serviceStarted�zSSHService.serviceStartedcCr)z�
        called when the service is stopped, either by the connection ending
        or by another service being started
        Nrr	rrr�serviceStoppedr
zSSHService.serviceStoppedcCsd�|j|jj���S)NzSSHService {!r} on {})�formatr�	transport�	logPrefixr	rrrr$s�zSSHService.logPrefixcCs\||jvr|j|}t|d|dd�d�}|dur||�S|jjd||d�|j��dS)zB
        called when we receive a packet on the transport
        zssh_%s�Nz'couldn't handle {messageNum} {packet!r})�
messageNum�packet)r�getattr�_log�infor�sendUnimplemented)r
rr�messageType�frrr�packetReceived)s

�zSSHService.packetReceived)�__name__�
__module__�__qualname__r�bytes�__annotations__rr�int�strrrrrrrrrrrrrs
rN)�__doc__�typingr�twisted.loggerrrrrrr�<module>s