Python gevent.socket 模块,_fileobject() 实例源码

我们从Python开源项目中,提取了以下43个代码示例,用于说明如何使用gevent.socket._fileobject()

项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def __init__(self, locals, conn):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        self._makefile_refs += 1
        return _fileobject(self, mode, bufsize, close=True)
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def __init__(self, locals, conn):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        self._makefile_refs += 1
        return _fileobject(self, mode, bufsize, close=True)
项目:oa_qian    作者:sunqb    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        if not PYPY:
            self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:RealtimePythonChat    作者:quangtqag    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        if not PYPY:
            self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def __init__(self, locals, conn):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        self._makefile_refs += 1
        return _fileobject(self, mode, bufsize, close=True)
项目:Flask-SocketIO    作者:cutedogspark    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        if not PYPY:
            self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:Flask-SocketIO    作者:cutedogspark    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:Flask-SocketIO    作者:cutedogspark    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:zenchmarks    作者:squeaky-pl    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        if not PYPY:
            self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def __init__(self, locals, conn, banner=None):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
        self.banner = banner
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def __init__(self, locals, conn):
        Greenlet.__init__(self)
        self.locals = locals
        self.desc = _fileobject(conn)
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def readline(self, *a):
        return socket._fileobject.readline(self, *a).replace("\r\n", "\n")
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        self._makefile_refs += 1
        return _fileobject(self, mode, bufsize, close=True)
项目:Lixiang_zhaoxin    作者:hejaxian    | 项目源码 | 文件源码
def makefile(self, mode='r', bufsize=-1):
        """Make and return a file-like object that
        works with the SSL connection.  Just use the code
        from the socket module."""
        if not PYPY:
            self._makefile_refs += 1
        # close=True so as to decrement the reference count when done with
        # the file-like object.
        return _fileobject(self, mode, bufsize, close=True)