Ë
    „ÇVh¯  ã                  óT   — d Z ddlmZ ddlmZmZ ddlmZ er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
é    )Úannotations)ÚTYPE_CHECKINGÚDict)ÚLogger)ÚSSHTransportBasec                  ó^   — e Zd ZU dZded<   i Zded<   dZded<    e«       Zd„ Z	d	„ Z
d
„ Zd„ Zy)Ú
SSHServiceNÚbytesÚnamezDict[int, str]ÚprotocolMessageszSSHTransportBase | NoneÚ	transportc                 ó   — y)zE
        called when the service is active on the transport.
        N© ©Úselfs    úI/home/dcms/DCMS/lib/python3.12/site-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   r   Ú	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   Ú__annotations__r   r   r   r    r   r   r   r%   r   r   r   r	   r	      s=   … à€Dˆ%Óà')ÐnÓ)Ø)-€IÐ&Ó-á‹8€Dòò
ò
ó
+r   r	   N)Ú__doc__Ú
__future__r   Útypingr   r   Útwisted.loggerr   Útwisted.conch.ssh.transportr   r	   r   r   r   ú<module>r/      s%   ðñõ #ç &å !áÝ<÷(+ò (+r   