~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/internet/interfaces.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-01-16 19:56:10 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060116195610-ykmxbia4mnnod9o2
Tags: 2.1.0-0ubuntu2
debian/copyright: Include copyright for python 2.3; some 2.3 files
are included in the upstream tarball, but not in the binary packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
class IAddress(Interface):
17
17
    """An address, e.g. a TCP (host, port).
18
18
 
19
 
    Default implementations are in twisted.internet.address.
 
19
    Default implementations are in L{twisted.internet.address}.
20
20
    """
21
21
 
22
22
 
222
222
        @returns: an L{IConnector}.
223
223
        """
224
224
 
225
 
    def listenSSL(self, port, factory, contextFactory, backlog=5, interface=''):
 
225
    def listenSSL(self, port, factory, contextFactory, backlog=50, interface=''):
226
226
        """
227
227
        Connects a given protocol factory to the given numeric TCP/IP port.
228
228
        The connection is a SSL one, using contexts created by the context
260
260
        @returns: an L{IConnector}.
261
261
        """
262
262
 
263
 
    def listenUNIX(self, address, factory, backlog=5, mode=0666, wantPID=0):
 
263
    def listenUNIX(self, address, factory, backlog=50, mode=0666, wantPID=0):
264
264
        """Listen on a UNIX socket.
265
265
 
266
266
        @param address: a path to a unix socket on the filesystem.
468
468
 
469
469
    def active(self):
470
470
        """
471
 
        @returns: A bool representing whether or not this call has been called
472
 
                  or cancelled. (True == This DelayedCall has not been called or
473
 
                  cancelled. False, otherwise).
 
471
        @returns: True if this call is still active, False if it has been
 
472
            called or cancelled.
474
473
        """
475
474
 
476
475
class IReactorThreads(Interface):
535
534
        This is most useful in applications where the UI is being drawn "as
536
535
        fast as possible", such as games. All pending L{IDelayedCall}s will
537
536
        be called.
 
537
 
 
538
        The reactor must have been started (via the run() method) prior to
 
539
        any invocations of this method.  It must also be stopped manually
 
540
        after the last call to this method (via the stop() method).  This
 
541
        method is not re-entrant: you must not call it recursively; in
 
542
        particular, you must not call it while the reactor is running.
538
543
        """
539
544
 
540
545
    def fireSystemEvent(self, eventType):
936
941
    """
937
942
 
938
943
    def write(self, data):
939
 
        """Write some data to the physical connection, in sequence.
 
944
        """Write some data to the physical connection, in sequence, in a
 
945
        non-blocking fashion.
940
946
 
941
947
        If possible, make sure that it is all written.  No data will
942
948
        ever be lost, although (obviously) the connection may be closed