OLD | NEW |
| (Empty) |
1 # Copyright (c) 2008 Twisted Matrix Laboratories. | |
2 # See LICENSE for details. | |
3 | |
4 | |
5 """ | |
6 Interfaces for iocpreactor | |
7 """ | |
8 | |
9 | |
10 from zope.interface import Interface | |
11 | |
12 | |
13 | |
14 class IReadHandle(Interface): | |
15 def readFromHandle(bufflist, evt): | |
16 """ | |
17 Read from this handle into the buffer list | |
18 """ | |
19 | |
20 | |
21 | |
22 class IWriteHandle(Interface): | |
23 def writeToHandle(buff, evt): | |
24 """ | |
25 Write the buffer to this handle | |
26 """ | |
27 | |
28 | |
29 | |
30 class IReadWriteHandle(IReadHandle, IWriteHandle): | |
31 pass | |
32 | |
33 | |
OLD | NEW |