<s> """<STR_LIT>""" <EOL> from __future__ import division , absolute_import <EOL> from zope . interface import Interface , Attribute <EOL> class IAddress ( Interface ) : <EOL> """<STR_LIT>""" <EOL> class IConnector ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def stopConnecting ( ) : <EOL> """<STR_LIT>""" <EOL> def disconnect ( ) : <EOL> """<STR_LIT>""" <EOL> def connect ( ) : <EOL> """<STR_LIT>""" <EOL> def getDestination ( ) : <EOL> """<STR_LIT>""" <EOL> class IResolverSimple ( Interface ) : <EOL> def getHostByName ( name , timeout = ( <NUM_LIT:1> , <NUM_LIT:3> , <NUM_LIT:11> , <NUM_LIT> ) ) : <EOL> """<STR_LIT>""" <EOL> class IResolver ( IResolverSimple ) : <EOL> def query ( query , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupAddress ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupAddress6 ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupIPV6Address ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupMailExchange ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupNameservers ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupCanonicalName ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupMailBox ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupMailGroup ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupMailRename ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupPointer ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupAuthority ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupNull ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupWellKnownServices ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupHostInfo ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupMailboxInfo ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupText ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupResponsibility ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupAFSDatabase ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupService ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupAllRecords ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupSenderPolicy ( name , timeout = <NUM_LIT:10> ) : <EOL> """<STR_LIT>""" <EOL> def lookupNamingAuthorityPointer ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupZone ( name , timeout = None ) : <EOL> """<STR_LIT>""" <EOL> class IReactorTCP ( Interface ) : <EOL> def listenTCP ( port , factory , backlog = <NUM_LIT:50> , interface = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> def connectTCP ( host , port , factory , timeout = <NUM_LIT:30> , bindAddress = None ) : <EOL> """<STR_LIT>""" <EOL> class IReactorSSL ( Interface ) : <EOL> def connectSSL ( host , port , factory , contextFactory , timeout = <NUM_LIT:30> , bindAddress = None ) : <EOL> """<STR_LIT>""" <EOL> def listenSSL ( port , factory , contextFactory , backlog = <NUM_LIT:50> , interface = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> class IReactorUNIX ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def connectUNIX ( address , factory , timeout = <NUM_LIT:30> , checkPID = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> def listenUNIX ( address , factory , backlog = <NUM_LIT:50> , mode = <NUM_LIT> , wantPID = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> class IReactorUNIXDatagram ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def connectUNIXDatagram ( address , protocol , maxPacketSize = <NUM_LIT> , mode = <NUM_LIT> , bindAddress = None ) : <EOL> """<STR_LIT>""" <EOL> def listenUNIXDatagram ( address , protocol , maxPacketSize = <NUM_LIT> , mode = <NUM_LIT> ) : <EOL> """<STR_LIT>""" <EOL> class IReactorWin32Events ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def addEvent ( event , fd , action ) : <EOL> """<STR_LIT>""" <EOL> def removeEvent ( event ) : <EOL> """<STR_LIT>""" <EOL> class IReactorUDP ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def listenUDP ( port , protocol , interface = '<STR_LIT>' , maxPacketSize = <NUM_LIT> ) : <EOL> """<STR_LIT>""" <EOL> class IReactorMulticast ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def listenMulticast ( port , protocol , interface = '<STR_LIT>' , maxPacketSize = <NUM_LIT> , <EOL> listenMultiple = False ) : <EOL> """<STR_LIT>""" <EOL> class IReactorSocket ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def adoptStreamPort ( fileDescriptor , addressFamily , factory ) : <EOL> """<STR_LIT>""" <EOL> def adoptStreamConnection ( fileDescriptor , addressFamily , factory ) : <EOL> """<STR_LIT>""" <EOL> class IReactorProcess ( Interface ) : <EOL> def spawnProcess ( processProtocol , executable , args = ( ) , env = { } , path = None , <EOL> uid = None , gid = None , usePTY = <NUM_LIT:0> , childFDs = None ) : <EOL> """<STR_LIT>""" <EOL> class IReactorTime ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def seconds ( ) : <EOL> """<STR_LIT>""" <EOL> def callLater ( delay , callable , * args , ** kw ) : <EOL> """<STR_LIT>""" <EOL> def getDelayedCalls ( ) : <EOL> """<STR_LIT>""" <EOL> class IDelayedCall ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def getTime ( ) : <EOL> """<STR_LIT>""" <EOL> def cancel ( ) : <EOL> """<STR_LIT>""" <EOL> def delay ( secondsLater ) : <EOL> """<STR_LIT>""" <EOL> def reset ( secondsFromNow ) : <EOL> """<STR_LIT>""" <EOL> def active ( ) : <EOL> """<STR_LIT>""" <EOL> class IReactorThreads ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def getThreadPool ( ) : <EOL> """<STR_LIT>""" <EOL> def callInThread ( callable , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> def callFromThread ( callable , * args , ** kw ) : <EOL> """<STR_LIT>""" <EOL> def suggestThreadPoolSize ( size ) : <EOL> """<STR_LIT>""" <EOL> class IReactorCore ( Interface ) : <EOL> """<STR_LIT>""" <EOL> running = Attribute ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> def resolve ( name , timeout = <NUM_LIT:10> ) : <EOL> """<STR_LIT>""" <EOL> def run ( ) : <EOL> """<STR_LIT>""" <EOL> def stop ( ) : <EOL> """<STR_LIT>""" <EOL> def crash ( ) : <EOL> """<STR_LIT>""" <EOL> def iterate ( delay = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> def fireSystemEvent ( eventType ) : <EOL> """<STR_LIT>""" <EOL> def addSystemEventTrigger ( phase , eventType , callable , * args , ** kw ) : <EOL> """<STR_LIT>""" <EOL> def removeSystemEventTrigger ( triggerID ) : <EOL> """<STR_LIT>""" <EOL> def callWhenRunning ( callable , * args , ** kw ) : <EOL> """<STR_LIT>""" <EOL> class IReactorPluggableResolver ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def installResolver ( resolver ) : <EOL> """<STR_LIT>""" <EOL> class IReactorDaemonize ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def beforeDaemonize ( ) : <EOL> """<STR_LIT>""" <EOL> def afterDaemonize ( ) : <EOL> """<STR_LIT>""" <EOL> class IReactorFDSet ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def addReader ( reader ) : <EOL> """<STR_LIT>""" <EOL> def addWriter ( writer ) : <EOL> """<STR_LIT>""" <EOL> def removeReader ( reader ) : <EOL> """<STR_LIT>""" <EOL> def removeWriter ( writer ) : <EOL> """<STR_LIT>""" <EOL> def removeAll ( ) : <EOL> """<STR_LIT>""" <EOL> def getReaders ( ) : <EOL> """<STR_LIT>""" <EOL> def getWriters ( ) : <EOL> """<STR_LIT>""" <EOL> class IListeningPort ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def startListening ( ) : <EOL> """<STR_LIT>""" <EOL> def stopListening ( ) : <EOL> """<STR_LIT>""" <EOL> def getHost ( ) : <EOL> """<STR_LIT>""" <EOL> class ILoggingContext ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def logPrefix ( ) : <EOL> """<STR_LIT>""" <EOL> class IFileDescriptor ( ILoggingContext ) : <EOL> """<STR_LIT>""" <EOL> def fileno ( ) : <EOL> """<STR_LIT>""" <EOL> def connectionLost ( reason ) : <EOL> """<STR_LIT>""" <EOL> class IReadDescriptor ( IFileDescriptor ) : <EOL> """<STR_LIT>""" <EOL> def doRead ( ) : <EOL> """<STR_LIT>""" <EOL> class IWriteDescriptor ( IFileDescriptor ) : <EOL> """<STR_LIT>""" <EOL> def doWrite ( ) : <EOL> """<STR_LIT>""" <EOL> class IReadWriteDescriptor ( IReadDescriptor , IWriteDescriptor ) : <EOL> """<STR_LIT>""" <EOL> class IHalfCloseableDescriptor ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def writeConnectionLost ( reason ) : <EOL> """<STR_LIT>""" <EOL> def readConnectionLost ( reason ) : <EOL> """<STR_LIT>""" <EOL> class ISystemHandle ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def getHandle ( ) : <EOL> """<STR_LIT>""" <EOL> class IConsumer ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def registerProducer ( producer , streaming ) : <EOL> """<STR_LIT>""" <EOL> def unregisterProducer ( ) : <EOL> """<STR_LIT>""" <EOL> def write ( data ) : <EOL> """<STR_LIT>""" <EOL> class IProducer ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def stopProducing ( ) : <EOL> """<STR_LIT>""" <EOL> class IPushProducer ( IProducer ) : <EOL> """<STR_LIT>""" <EOL> def pauseProducing ( ) : <EOL> """<STR_LIT>""" <EOL> def resumeProducing ( ) : <EOL> """<STR_LIT>""" <EOL> class IPullProducer ( IProducer ) : <EOL> """<STR_LIT>""" <EOL> def resumeProducing ( ) : <EOL> """<STR_LIT>""" <EOL> class IProtocol ( Interface ) : <EOL> def dataReceived ( data ) : <EOL> """<STR_LIT>""" <EOL> def connectionLost ( reason ) : <EOL> """<STR_LIT>""" <EOL> def makeConnection ( transport ) : <EOL> """<STR_LIT>""" <EOL> def connectionMade ( ) : <EOL> """<STR_LIT>""" <EOL> class IProcessProtocol ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def makeConnection ( process ) : <EOL> """<STR_LIT>""" <EOL> def childDataReceived ( childFD , data ) : <EOL> """<STR_LIT>""" <EOL> def childConnectionLost ( childFD ) : <EOL> """<STR_LIT>""" <EOL> def processExited ( reason ) : <EOL> """<STR_LIT>""" <EOL> def processEnded ( reason ) : <EOL> """<STR_LIT>""" <EOL> class IHalfCloseableProtocol ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def readConnectionLost ( ) : <EOL> """<STR_LIT>""" <EOL> def writeConnectionLost ( ) : <EOL> """<STR_LIT>""" <EOL> class IFileDescriptorReceiver ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def fileDescriptorReceived ( descriptor ) : <EOL> """<STR_LIT>""" <EOL> class IProtocolFactory ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def buildProtocol ( addr ) : <EOL> """<STR_LIT>""" <EOL> def doStart ( ) : <EOL> """<STR_LIT>""" <EOL> def doStop ( ) : <EOL> """<STR_LIT>""" <EOL> class ITransport ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def write ( data ) : <EOL> """<STR_LIT>""" <EOL> def writeSequence ( data ) : <EOL> """<STR_LIT>""" <EOL> def loseConnection ( ) : <EOL> """<STR_LIT>""" <EOL> def getPeer ( ) : <EOL> """<STR_LIT>""" <EOL> def getHost ( ) : <EOL> """<STR_LIT>""" <EOL> class ITCPTransport ( ITransport ) : <EOL> """<STR_LIT>""" <EOL> def loseWriteConnection ( ) : <EOL> """<STR_LIT>""" <EOL> def abortConnection ( ) : <EOL> """<STR_LIT>""" <EOL> def getTcpNoDelay ( ) : <EOL> """<STR_LIT>""" <EOL> def setTcpNoDelay ( enabled ) : <EOL> """<STR_LIT>""" <EOL> def getTcpKeepAlive ( ) : <EOL> """<STR_LIT>""" <EOL> def setTcpKeepAlive ( enabled ) : <EOL> """<STR_LIT>""" <EOL> def getHost ( ) : <EOL> """<STR_LIT>""" <EOL> def getPeer ( ) : <EOL> """<STR_LIT>""" <EOL> class IUNIXTransport ( ITransport ) : <EOL> """<STR_LIT>""" <EOL> def sendFileDescriptor ( descriptor ) : <EOL> """<STR_LIT>""" <EOL> class ITLSTransport ( ITCPTransport ) : <EOL> """<STR_LIT>""" <EOL> def startTLS ( contextFactory ) : <EOL> """<STR_LIT>""" <EOL> class ISSLTransport ( ITCPTransport ) : <EOL> """<STR_LIT>""" <EOL> def getPeerCertificate ( ) : <EOL> """<STR_LIT>""" <EOL> class IProcessTransport ( ITransport ) : <EOL> """<STR_LIT>""" <EOL> pid = Attribute ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> def closeStdin ( ) : <EOL> """<STR_LIT>""" <EOL> def closeStdout ( ) : <EOL> """<STR_LIT>""" <EOL> def closeStderr ( ) : <EOL> """<STR_LIT>""" <EOL> def closeChildFD ( descriptor ) : <EOL> """<STR_LIT>""" <EOL> def writeToChild ( childFD , data ) : <EOL> """<STR_LIT>""" <EOL> def loseConnection ( ) : <EOL> """<STR_LIT>""" <EOL> def signalProcess ( signalID ) : <EOL> """<STR_LIT>""" <EOL> class IServiceCollection ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def getServiceNamed ( serviceName ) : <EOL> """<STR_LIT>""" <EOL> def addService ( service ) : <EOL> """<STR_LIT>""" <EOL> def removeService ( service ) : <EOL> """<STR_LIT>""" <EOL> class IUDPTransport ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def write ( packet , addr = None ) : <EOL> """<STR_LIT>""" <EOL> def connect ( host , port ) : <EOL> """<STR_LIT>""" <EOL> def getHost ( ) : <EOL> """<STR_LIT>""" <EOL> def stopListening ( ) : <EOL> """<STR_LIT>""" <EOL> class IUNIXDatagramTransport ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def write ( packet , address ) : <EOL> """<STR_LIT>""" <EOL> def getHost ( ) : <EOL> """<STR_LIT>""" <EOL> class IUNIXDatagramConnectedTransport ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def write ( packet ) : <EOL> """<STR_LIT>""" <EOL> def getHost ( ) : <EOL> """<STR_LIT>""" <EOL> def getPeer ( ) : <EOL> """<STR_LIT>""" <EOL> class IMulticastTransport ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def getOutgoingInterface ( ) : <EOL> """<STR_LIT>""" <EOL> def setOutgoingInterface ( addr ) : <EOL> """<STR_LIT>""" <EOL> def getLoopbackMode ( ) : <EOL> """<STR_LIT>""" <EOL> def setLoopbackMode ( mode ) : <EOL> """<STR_LIT>""" <EOL> def getTTL ( ) : <EOL> """<STR_LIT>""" <EOL> def setTTL ( ttl ) : <EOL> """<STR_LIT>""" <EOL> def joinGroup ( addr , interface = "<STR_LIT>" ) : <EOL> """<STR_LIT>""" <EOL> def leaveGroup ( addr , interface = "<STR_LIT>" ) : <EOL> """<STR_LIT>""" <EOL> class IStreamClientEndpoint ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def connect ( protocolFactory ) : <EOL> """<STR_LIT>""" <EOL> class IStreamServerEndpoint ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def listen ( protocolFactory ) : <EOL> """<STR_LIT>""" <EOL> class IStreamServerEndpointStringParser ( Interface ) : <EOL> """<STR_LIT>""" <EOL> prefix = Attribute ( <EOL> """<STR_LIT>""" <EOL> ) <EOL> def parseStreamServer ( reactor , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> class IStreamClientEndpointStringParser ( Interface ) : <EOL> """<STR_LIT>""" <EOL> prefix = Attribute ( <EOL> """<STR_LIT>""" <EOL> ) <EOL> def parseStreamClient ( * args , ** kwargs ) : <EOL> """<STR_LIT>""" </s>
