
    h                    ^    S r SSKJr  SSKJrJr  SSKJr  \(       a  SSKJ	r	   " S S5      r
g)	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                  f    \ rS rSr% SrS\S'   0 rS\S'   SrS\S'   \" 5       r	S	 r
S
 rS rS rSrg)
SSHService   NbytesnamezDict[int, str]protocolMessageszSSHTransportBase | None	transportc                    g)z5
called when the service is active on the transport.
N selfs    `/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/conch/ssh/service.pyserviceStartedSSHService.serviceStarted           c                    g)zi
called when the service is stopped, either by the connection ending
or by another service being started
Nr   r   s    r   serviceStoppedSSHService.serviceStopped"   r   r   c                ~    SR                  U R                  U R                  R                  R                  5       5      $ )NzSSHService {!r} on {})formatr   r   	logPrefixr   s    r   r   SSHService.logPrefix(   s1    &--IIt~~//99;
 	
r   c                    XR                   ;   a-  U R                   U   n[        U SUSS -  S5      nUb  U" U5      $ U R                  R                  SUUS9  U R                  R                  5         g)z2
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   packetReceivedSSHService.packetReceived-   sx    
 ...//
;KhQR8$?A}y 		5! 	 	

 	((*r   r   )__name__
__module____qualname____firstlineno__r   __annotations__r   r   r   r$   r   r   r   r)   __static_attributes__r   r   r   r	   r	      s=    D%')n))-I&-8D


+r   r	   N)__doc__
__future__r   typingr   r   twisted.loggerr   twisted.conch.ssh.transportr   r	   r   r   r   <module>r6      s%    # & !<(+ (+r   