Ticket #3974: twisted.patch

File twisted.patch, 1.8 KB (added by Dave Peticolas, 13 years ago)
  • twisted/internet/interfaces.py

     
    823823
    824824        @param reader: An L{IReadDescriptor} provider that will be checked for
    825825                       read events until it is removed from the reactor with
    826                        L{removeReader}.
     826                       L{removeReader}. Should also implement
     827                       L{ILoggingContext}.
    827828
    828829        @return: C{None}.
    829830        """
     
    834835
    835836        @param writer: An L{IWriteDescriptor} provider that will be checked for
    836837                       read events until it is removed from the reactor with
    837                        L{removeWriter}.
     838                       L{removeWriter}. Should also implement
     839                       L{ILoggingContext}.
    838840
    839841        @return: C{None}.
    840842        """
     
    964966
    965967    def doRead():
    966968        """
    967         Some data is available for reading on your descriptor.
     969        Some data is available for reading on your descriptor. If the
     970        connection is closed, return an Exception indicating
     971        why. Otherwise, return None. For connections closed cleanly,
     972        return L{main.CONNECTION_DONE}. For failed connections return
     973        L{main.CONNECTION_LOST}.
    968974        """
    969975
    970976
     
    977983
    978984    def doWrite():
    979985        """
    980         Some data can be written to your descriptor.
     986        Some data can be written to your descriptor. If the connection
     987        is closed, return an Exception indicating why. Otherwise,
     988        return None. For connections closed cleanly, return
     989        L{main.CONNECTION_DONE}. For failed connections return
     990        L{main.CONNECTION_LOST}.
    981991        """
    982992
    983993