![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/twisted/conch/__pycache__/ |
o �bF: � @ s� d Z ddlmZmZ G dd� de�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�Z G d d� de�Z G dd� de�ZdS )zK This module contains interfaces defined for the L{twisted.conch} package. � )� Attribute� Interfacec @ s0 e Zd ZdZed�Zdd� Zdd� Zdd� Zd S ) � IConchUserz� A user who has been authenticated to Cred through Conch. This is the interface between the SSH connection and the user. z'The SSHConnection object for this user.c C � dS )a� The other side requested a channel of some sort. C{channelType} is the type of channel being requested, as an ssh connection protocol channel type. C{data} is any other packet data (often nothing). We return a subclass of L{SSHChannel<ssh.channel.SSHChannel>}. If the channel type is unknown, we return C{None}. For other failures, we raise an exception. If a L{ConchError<error.ConchError>} is raised, the C{.value} will be the message, and the C{.data} will be the error code. @param channelType: The requested channel type @type channelType: L{bytes} @param windowSize: The initial size of the remote window @type windowSize: L{int} @param maxPacket: The largest packet we should send @type maxPacket: L{int} @param data: Additional request data @type data: L{bytes} @rtype: a subclass of L{SSHChannel} or L{None} N� )�channelType� windowSize� maxPacket�datar r �:/usr/lib/python3/dist-packages/twisted/conch/interfaces.py� lookupChannel � zIConchUser.lookupChannelc C r )a� The other side requested a subsystem. We return a L{Protocol} implementing the requested subsystem. If the subsystem is not available, we return C{None}. @param subsystem: The name of the subsystem being requested @type subsystem: L{bytes} @param data: Additional request data (often nothing) @type data: L{bytes} @rtype: L{Protocol} or L{None} Nr )� subsystemr r r r �lookupSubsystem- r zIConchUser.lookupSubsystemc C r )a� A global request was sent from the other side. We return a true value on success or a false value on failure. If we indicate success by returning a tuple, its second item will be sent to the other side as additional response data. @param requestType: The type of the request @type requestType: L{bytes} @param data: Additional request data @type data: L{bytes} @rtype: boolean or L{tuple} Nr )�requestTyper r r r �gotGlobalRequest; r zIConchUser.gotGlobalRequestN) �__name__� __module__�__qualname__�__doc__r �connr r r r r r r r s r c @ s<