
    Vh                     V   d Z ddlmZ ddlmZmZmZmZ ddlm	Z	  ee	       G d d             Z
 ee       G d de
             Z ee       G d	 d
e
             Z G d d      Z ee       G d de             Z ee       G d de             Z ed      Z ed      Z ed      Zy)zM
Fake client and server endpoint string parser plugins for testing purposes.
    )implementer)IStreamClientEndpoint,IStreamClientEndpointStringParserWithReactorIStreamServerEndpoint!IStreamServerEndpointStringParser)IPluginc                       e Zd Zd Zy)
PluginBasec                     || _         y N)prefix)selfpfxs     R/home/dcms/DCMS/lib/python3.12/site-packages/twisted/internet/test/fakeendpoint.py__init__zPluginBase.__init__   s	        N__name__
__module____qualname__r    r   r   r
   r
      s    r   r
   c                       e Zd Zd Zy)FakeClientParserWithReactorc                     t        | ||      S r   )StreamClientr   akws      r   parseStreamClientz-FakeClientParserWithReactor.parseStreamClient       D!R((r   N)r   r   r   r   r   r   r   r   r          )r   r   c                       e Zd Zd Zy)
FakeParserc                     t        | ||      S r   )StreamServerr   s      r   parseStreamServerzFakeParser.parseStreamServer#   r    r   N)r   r   r   r&   r   r   r   r#   r#   !   r!   r   r#   c                       e Zd Zd Zy)EndpointBasec                 .    || _         || _        || _        y r   )parserargskwargs)r   r*   r+   r,   s       r   r   zEndpointBase.__init__(   s    	r   Nr   r   r   r   r(   r(   '   s    r   r(   c                       e Zd ZddZy)r   Nc                      y r   r   r   protocolFactorys     r   connectzStreamClient.connect0       r   r   )r   r   r   r1   r   r   r   r   r   .       r   r   c                       e Zd ZddZy)r%   Nc                      y r   r   r/   s     r   listenzStreamServer.listen7   r2   r   r   )r   r   r   r6   r   r   r   r%   r%   5   r3   r   r%   fakecrfakecpfakeN)__doc__zope.interface.declarationsr   twisted.internet.interfacesr   r   r   r   twisted.pluginr   r
   r   r#   r(   r   r%   r7   fakeClientWithReactor"fakeClientWithReactorAndPreferencer   r   r   <module>r@      s   

 4  # W  
 9:)* ) ;)
 ./) ) 0)
  "#<  $ "#<  $ &3H= %@%J "r   