K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / lib / python2.7 / dist-packages / twisted / internet / iocpreactor /
server ip : 172.67.156.115

your ip : 172.69.17.38

H O M E


Filename/usr/lib/python2.7/dist-packages/twisted/internet/iocpreactor/interfaces.py
Size942
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:56
Last modified17-Mar-2011 10:34
Last accessed07-Jul-2025 07:15
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.


"""
Interfaces for iocpreactor
"""


from zope.interface import Interface



class IReadHandle(Interface):
def readFromHandle(bufflist, evt):
"""
Read into the given buffers from this handle.

@param buff: the buffers to read into
@type buff: list of objects implementing the read/write buffer protocol

@param evt: an IOCP Event object

@return: tuple (return code, number of bytes read)
"""



class IWriteHandle(Interface):
def writeToHandle(buff, evt):
"""
Write the given buffer to this handle.

@param buff: the buffer to write
@type buff: any object implementing the buffer protocol

@param evt: an IOCP Event object

@return: tuple (return code, number of bytes written)
"""



class IReadWriteHandle(IReadHandle, IWriteHandle):
pass