ϪfVdZddlmZddlmZmZmZmZddlm Z ee GddZ eeGdde Z eeGd d e Z Gd d Z eeGd de ZeeGdde Ze dZe dZe dZy)zM Fake client and server endpoint string parser plugins for testing purposes. ) implementer)IStreamClientEndpoint,IStreamClientEndpointStringParserWithReactorIStreamServerEndpoint!IStreamServerEndpointStringParser)IPluginceZdZdZy) PluginBasec||_yN)prefix)selfpfxs D/usr/lib/python3/dist-packages/twisted/internet/test/fakeendpoint.py__init__zPluginBase.__init__s  N__name__ __module__ __qualname__rrrr r srr ceZdZdZy)FakeClientParserWithReactorct|||Sr ) StreamClientrakws rparseStreamClientz-FakeClientParserWithReactor.parseStreamClientD!R((rN)rrrrrrrrr)rrceZdZdZy) FakeParserct|||Sr ) StreamServerrs rparseStreamServerzFakeParser.parseStreamServer#r rN)rrrr&rrrr#r#!r!rr#ceZdZdZy) EndpointBasec.||_||_||_yr )parserargskwargs)rr*r+r,s rrzEndpointBase.__init__(s   rNrrrrr(r('srr(ceZdZddZy)rNcyr rrprotocolFactorys rconnectzStreamClient.connect0 rr )rrrr1rrrrr. rrceZdZddZy)r%Ncyr rr/s rlistenzStreamServer.listen7r2rr )rrrr6rrrr%r%5r3rr%fakecrfakecpfakeN)__doc__zope.interface.declarationsrtwisted.internet.interfacesrrrrtwisted.pluginrr rr#r(rr%r7fakeClientWithReactor"fakeClientWithReactorAndPreferencerrrr@s  4 # W  9:)*);)  ./))0)  "# < $  "# < $ &3H=%@%J"r