o b@s.dZddlmZddlmZGdddZdS)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 ddZ ddZdd Zd d ZdS) SSHServiceNnameprotocolMessagescCdS)zE called when the service is active on the transport. Nselfrr;/usr/lib/python3/dist-packages/twisted/conch/ssh/service.pyserviceStartedzSSHService.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|jjS)NzSSHService {!r} on {})formatr transport logPrefixr rrr r$szSSHService.logPrefixcCs\||jvr|j|}t|d|ddd}|dur||S|jjd||d|jdS)zB called when we receive a packet on the transport zssh_%sNz'couldn't handle {messageNum} {packet!r}) messageNumpacket)rgetattr_loginforsendUnimplemented)r rr messageTypefrrr packetReceived)s  zSSHService.packetReceived)__name__ __module__ __qualname__rbytes__annotations__rrintstrrrrr rrrrrrr rs  rN)__doc__typingrtwisted.loggerrrrrrr s