OXIESEC PANEL
- Current Dir:
/
/
lib
/
python2.7
/
site-packages
/
pymysql
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/15/2023 03:01:18 PM
rwxr-xr-x
📄
__init__.py
4.49 KB
12/20/2017 12:18:00 PM
rw-r--r--
📄
__init__.pyc
5.47 KB
04/21/2022 01:39:16 PM
rw-r--r--
📄
__init__.pyo
5.47 KB
04/21/2022 01:39:16 PM
rw-r--r--
📄
_compat.py
481 bytes
05/18/2016 09:03:00 AM
rw-r--r--
📄
_compat.pyc
698 bytes
04/21/2022 01:39:16 PM
rw-r--r--
📄
_compat.pyo
698 bytes
04/21/2022 01:39:16 PM
rw-r--r--
📄
_socketio.py
3.95 KB
02/04/2015 05:38:59 AM
rw-r--r--
📄
_socketio.pyc
4.71 KB
04/21/2022 01:39:16 PM
rw-r--r--
📄
_socketio.pyo
4.71 KB
04/21/2022 01:39:16 PM
rw-r--r--
📄
charset.py
13.46 KB
08/29/2016 08:21:29 AM
rw-r--r--
📄
charset.pyc
13.79 KB
04/21/2022 01:39:16 PM
rw-r--r--
📄
charset.pyo
13.79 KB
04/21/2022 01:39:16 PM
rw-r--r--
📄
connections.py
56.75 KB
12/20/2017 12:38:06 PM
rw-r--r--
📄
connections.pyc
53.45 KB
04/21/2022 01:39:16 PM
rw-r--r--
📄
connections.pyo
53.38 KB
04/21/2022 01:39:17 PM
rw-r--r--
📁
constants
-
03/16/2023 12:45:13 PM
rwxr-xr-x
📄
converters.py
12.44 KB
12/20/2017 12:16:54 PM
rw-r--r--
📄
converters.pyc
14.49 KB
04/21/2022 01:39:17 PM
rw-r--r--
📄
converters.pyo
14.33 KB
04/21/2022 01:39:17 PM
rw-r--r--
📄
cursors.py
16.37 KB
12/20/2017 09:29:49 AM
rw-r--r--
📄
cursors.pyc
18.89 KB
04/21/2022 01:39:17 PM
rw-r--r--
📄
cursors.pyo
18.81 KB
04/21/2022 01:39:17 PM
rw-r--r--
📄
err.py
3.55 KB
12/20/2017 09:29:49 AM
rw-r--r--
📄
err.pyc
5.6 KB
04/21/2022 01:39:17 PM
rw-r--r--
📄
err.pyo
5.6 KB
04/21/2022 01:39:17 PM
rw-r--r--
📄
optionfile.py
658 bytes
08/30/2017 10:38:31 AM
rw-r--r--
📄
optionfile.pyc
1.29 KB
04/21/2022 01:39:17 PM
rw-r--r--
📄
optionfile.pyo
1.29 KB
04/21/2022 01:39:17 PM
rw-r--r--
📁
tests
-
03/16/2023 12:45:13 PM
rwxr-xr-x
📄
times.py
360 bytes
08/29/2016 11:57:13 AM
rw-r--r--
📄
times.pyc
944 bytes
04/21/2022 01:39:17 PM
rw-r--r--
📄
times.pyo
944 bytes
04/21/2022 01:39:17 PM
rw-r--r--
📄
util.py
332 bytes
06/29/2017 07:34:50 AM
rw-r--r--
📄
util.pyc
858 bytes
04/21/2022 01:39:17 PM
rw-r--r--
📄
util.pyo
858 bytes
04/21/2022 01:39:17 PM
rw-r--r--
Editing: _socketio.py
Close
""" SocketIO imported from socket module in Python 3. Copyright (c) 2001-2013 Python Software Foundation; All Rights Reserved. """ from socket import * import io import errno __all__ = ['SocketIO'] EINTR = errno.EINTR _blocking_errnos = (errno.EAGAIN, errno.EWOULDBLOCK) class SocketIO(io.RawIOBase): """Raw I/O implementation for stream sockets. This class supports the makefile() method on sockets. It provides the raw I/O interface on top of a socket object. """ # One might wonder why not let FileIO do the job instead. There are two # main reasons why FileIO is not adapted: # - it wouldn't work under Windows (where you can't used read() and # write() on a socket handle) # - it wouldn't work with socket timeouts (FileIO would ignore the # timeout and consider the socket non-blocking) # XXX More docs def __init__(self, sock, mode): if mode not in ("r", "w", "rw", "rb", "wb", "rwb"): raise ValueError("invalid mode: %r" % mode) io.RawIOBase.__init__(self) self._sock = sock if "b" not in mode: mode += "b" self._mode = mode self._reading = "r" in mode self._writing = "w" in mode self._timeout_occurred = False def readinto(self, b): """Read up to len(b) bytes into the writable buffer *b* and return the number of bytes read. If the socket is non-blocking and no bytes are available, None is returned. If *b* is non-empty, a 0 return value indicates that the connection was shutdown at the other end. """ self._checkClosed() self._checkReadable() if self._timeout_occurred: raise IOError("cannot read from timed out object") while True: try: return self._sock.recv_into(b) except timeout: self._timeout_occurred = True raise except error as e: n = e.args[0] if n == EINTR: continue if n in _blocking_errnos: return None raise def write(self, b): """Write the given bytes or bytearray object *b* to the socket and return the number of bytes written. This can be less than len(b) if not all data could be written. If the socket is non-blocking and no bytes could be written None is returned. """ self._checkClosed() self._checkWritable() try: return self._sock.send(b) except error as e: # XXX what about EINTR? if e.args[0] in _blocking_errnos: return None raise def readable(self): """True if the SocketIO is open for reading. """ if self.closed: raise ValueError("I/O operation on closed socket.") return self._reading def writable(self): """True if the SocketIO is open for writing. """ if self.closed: raise ValueError("I/O operation on closed socket.") return self._writing def seekable(self): """True if the SocketIO is open for seeking. """ if self.closed: raise ValueError("I/O operation on closed socket.") return super().seekable() def fileno(self): """Return the file descriptor of the underlying socket. """ self._checkClosed() return self._sock.fileno() @property def name(self): if not self.closed: return self.fileno() else: return -1 @property def mode(self): return self._mode def close(self): """Close the SocketIO object. This doesn't close the underlying socket, except if all references to it have disappeared. """ if self.closed: return io.RawIOBase.close(self) self._sock._decref_socketios() self._sock = None