Ë
    ÏªÍf  ã                   ó4   — d Z ddlmZ ddlmZ  G d„ d«      Zy)zŠ
The parent class for all the SSH services.  Currently implemented services
are ssh-userauth and ssh-connection.

Maintainer: Paul Swartz
é    )ÚDict)ÚLoggerc                   ó^   — e Zd ZU dZeed<   i Zeee	f   ed<   dZ
 e«       Zd„ Zd„ Zd„ Zd„ Zy)Ú
SSHServiceNÚnameÚprotocolMessagesc                  ó   — y)zE
        called when the service is active on the transport.
        N© ©Úselfs    ú;/usr/lib/python3/dist-packages/twisted/conch/ssh/service.pyÚserviceStartedzSSHService.serviceStarted   ó    ó    c                  ó   — y)z
        called when the service is stopped, either by the connection ending
        or by another service being started
        Nr
   r   s    r   ÚserviceStoppedzSSHService.serviceStopped   r   r   c                 ó~   — dj                  | j                  | j                  j                  j                  «       «      S )NzSSHService {!r} on {})Úformatr   Ú	transportÚ	logPrefixr   s    r   r   zSSHService.logPrefix$   s1   € Ø&×-Ñ-ØI‰It—~‘~×/Ñ/×9Ñ9Ó;ó
ð 	
r   c                 óè   — || j                   v r,| j                   |   }t        | d|dd z  d«      }| ||«      S | j                  j                  d||¬«       | j                  j                  «        y)zB
        called when we receive a packet on the transport
        zssh_%sé   Nz'couldn't handle {messageNum} {packet!r})Ú
messageNumÚpacket)r   ÚgetattrÚ_logÚinfor   ÚsendUnimplemented)r   r   r   ÚmessageTypeÚfs        r   ÚpacketReceivedzSSHService.packetReceived)   sz   € ð
 ˜×.Ñ.Ñ.Ø×/Ñ/°
Ñ;ˆKÜ˜˜h¨°Q°R¨Ñ8¸$Ó?ˆAØˆ}Ù˜“yÐ Ø	‰	‰Ø5Ø!Øð 	ô 	
ð
 	‰×(Ñ(Õ*r   )Ú__name__Ú
__module__Ú__qualname__r   ÚbytesÚ__annotations__r   r   ÚintÚstrr   r   r   r   r   r   r!   r
   r   r   r   r      s?   … à€Dˆ%Óà')Ðd˜3 ˜8‘nÓ)Ø€Iá‹8€Dòò
ò
ó
+r   r   N)Ú__doc__Útypingr   Útwisted.loggerr   r   r
   r   r   ú<module>r,      s   ðñõ å !÷(+ò (+r   