Did I find the right examples for you? yes no

All Samples(160)  |  Call(6)  |  Derive(82)  |  Import(72)
Wraps protocol instances and acts as their transport as well.

@ivar wrappedProtocol: An L{IProtocol<twisted.internet.interfaces.IProtocol>}
    provider to which L{IProtocol<twisted.internet.interfaces.IProtocol>}
    method calls onto this L{ProtocolWrapper} will be proxied.

@ivar factory: The L{WrappingFactory} which created this
    L{ProtocolWrapper}.

src/o/t/ottwatch-HEAD/lib/gdata/samples/apps/marketplace_sample/gdata/tlslite/integration/TLSTwistedProtocolWrapper.py   ottwatch(Download)
"""TLS Lite + Twisted."""
 
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
from twisted.python.failure import Failure
 
class TLSTwistedProtocolWrapper(ProtocolWrapper, AsyncStateMachine):
    """This class can wrap Twisted protocols to add TLS support.
 
    Below is a complete example of using TLS Lite with a Twisted echo
    server.

src/g/d/gdata-2.0.18/samples/apps/marketplace_sample/gdata/tlslite/integration/TLSTwistedProtocolWrapper.py   gdata(Download)
"""TLS Lite + Twisted."""
 
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
from twisted.python.failure import Failure
 
class TLSTwistedProtocolWrapper(ProtocolWrapper, AsyncStateMachine):
    """This class can wrap Twisted protocols to add TLS support.
 
    Below is a complete example of using TLS Lite with a Twisted echo
    server.

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/protocols/tls.py   oh-mainline(Download)
from twisted.internet.main import CONNECTION_DONE, CONNECTION_LOST
from twisted.internet.protocol import Protocol
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
 
 
class TLSMemoryBIOProtocol(ProtocolWrapper):

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/protocols/tls.py   mythbox(Download)
from twisted.internet.main import CONNECTION_DONE, CONNECTION_LOST
from twisted.internet.protocol import Protocol
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
 
 
class TLSMemoryBIOProtocol(ProtocolWrapper):

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/src/gdata/tlslite/integration/TLSTwistedProtocolWrapper.py   oh-mainline(Download)
"""TLS Lite + Twisted."""
 
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
from twisted.python.failure import Failure
 
class TLSTwistedProtocolWrapper(ProtocolWrapper, AsyncStateMachine):
    """This class can wrap Twisted protocols to add TLS support.
 
    Below is a complete example of using TLS Lite with a Twisted echo
    server.

src/t/x/txsockjs-1.2.1/txsockjs/protocols/websocket.py   txsockjs(Download)
from twisted.internet import address
from twisted.internet.protocol import Protocol
from twisted.protocols.policies import WrappingFactory, ProtocolWrapper
from twisted.web.server import NOT_DONE_YET
from txsockjs.oldwebsockets import OldWebSocketsResource
from txsockjs.utils import normalize
import json, re
 
 
class PeerOverrideProtocol(ProtocolWrapper):

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/protocols/loopback.py   oh-mainline(Download)
class _FireOnClose(policies.ProtocolWrapper):
    def __init__(self, protocol, factory):
        policies.ProtocolWrapper.__init__(self, protocol, factory)
        self.deferred = defer.Deferred()
 

src/t/w/Twisted-13.2.0/twisted/protocols/tls.py   Twisted(Download)
from twisted.internet.protocol import Protocol
from twisted.internet.task import cooperate
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
 
 
class TLSMemoryBIOProtocol(ProtocolWrapper):
    """
    L{TLSMemoryBIOProtocol} is a protocol wrapper which uses OpenSSL via a
    memory BIO to encrypt bytes written to it before sending them on to the
    underlying transport and decrypts bytes received from the underlying

src/p/y/PythonForumIDE-HEAD/pythonforumide/twisted/protocols/tls.py   PythonForumIDE(Download)
from twisted.internet.main import CONNECTION_DONE, CONNECTION_LOST
from twisted.internet.protocol import Protocol
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
 
 
class TLSMemoryBIOProtocol(ProtocolWrapper):

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/protocols/tls.py   SubliminalCollaborator(Download)
from twisted.internet.protocol import Protocol
from twisted.internet.task import cooperate
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
 
 
class TLSMemoryBIOProtocol(ProtocolWrapper):
    """
    L{TLSMemoryBIOProtocol} is a protocol wrapper which uses OpenSSL via a
    memory BIO to encrypt bytes written to it before sending them on to the
    underlying transport and decrypts bytes received from the underlying

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next