__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# 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 bufflist: the buffers to read into
@type bufflist: 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
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 191 B | 0644 |
|
| abstract.py | File | 12.76 KB | 0644 |
|
| const.py | File | 523 B | 0644 |
|
| interfaces.py | File | 945 B | 0644 |
|
| iocpsupport.py | File | 451 B | 0644 |
|
| reactor.py | File | 9.18 KB | 0644 |
|
| tcp.py | File | 19.85 KB | 0644 |
|
| udp.py | File | 13.98 KB | 0644 |
|