✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.254
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python37/lib64/python3.7/site-packages/twisted/python//sendmsg.py
# -*- test-case-name: twisted.test.test_sendmsg -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

"""
sendmsg(2) and recvmsg(2) support for Python.
"""

from __future__ import absolute_import, division

from collections import namedtuple
from twisted.python.compat import _PY3

__all__ = ["sendmsg", "recvmsg", "getSocketFamily", "SCM_RIGHTS"]

if not _PY3:
    from twisted.python._sendmsg import send1msg, recv1msg
    from twisted.python._sendmsg import getsockfam, SCM_RIGHTS
    __all__ += ["send1msg", "recv1msg", "getsockfam"]
else:
    from socket import SCM_RIGHTS, CMSG_SPACE

RecievedMessage = namedtuple('RecievedMessage', ['data', 'ancillary', 'flags'])



def sendmsg(socket, data, ancillary=[], flags=0):
    """
    Send a message on a socket.

    @param socket: The socket to send the message on.
    @type socket: L{socket.socket}

    @param data: Bytes to write to the socket.
    @type data: bytes

    @param ancillary: Extra data to send over the socket outside of the normal
        datagram or stream mechanism.  By default no ancillary data is sent.
    @type ancillary: C{list} of C{tuple} of C{int}, C{int}, and C{bytes}.

    @param flags: Flags to affect how the message is sent.  See the C{MSG_}
        constants in the sendmsg(2) manual page.  By default no flags are set.
    @type flags: C{int}

    @return: The return value of the underlying syscall, if it succeeds.
    """
    if _PY3:
        return socket.sendmsg([data], ancillary, flags)
    else:
        return send1msg(socket.fileno(), data, flags, ancillary)



def recvmsg(socket, maxSize=8192, cmsgSize=4096, flags=0):
    """
    Receive a message on a socket.

    @param socket: The socket to receive the message on.
    @type socket: L{socket.socket}

    @param maxSize: The maximum number of bytes to receive from the socket using
        the datagram or stream mechanism. The default maximum is 8192.
    @type maxSize: L{int}

    @param cmsgSize: The maximum number of bytes to receive from the socket
        outside of the normal datagram or stream mechanism. The default maximum
        is 4096.
    @type cmsgSize: L{int}

    @param flags: Flags to affect how the message is sent.  See the C{MSG_}
        constants in the sendmsg(2) manual page. By default no flags are set.
    @type flags: L{int}

    @return: A named 3-tuple of the bytes received using the datagram/stream
        mechanism, a L{list} of L{tuple}s giving ancillary received data, and
        flags as an L{int} describing the data received.
    """
    if _PY3:
        # In Twisted's sendmsg.c, the csmg_space is defined as:
        #     int cmsg_size = 4096;
        #     cmsg_space = CMSG_SPACE(cmsg_size);
        # Since the default in Python 3's socket is 0, we need to define our
        # own default of 4096. -hawkie
        data, ancillary, flags = socket.recvmsg(
            maxSize, CMSG_SPACE(cmsgSize), flags)[0:3]
    else:
        data, flags, ancillary = recv1msg(
            socket.fileno(), flags, maxSize, cmsgSize)

    return RecievedMessage(data=data, ancillary=ancillary, flags=flags)



def getSocketFamily(socket):
    """
    Return the family of the given socket.

    @param socket: The socket to get the family of.
    @type socket: L{socket.socket}

    @rtype: L{int}
    """
    if _PY3:
        return socket.family
    else:
        return getsockfam(socket.fileno())


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
1 Jan 1970 12.00 AM
root / root
0
__pycache__
--
25 Jul 2024 8.43 AM
root / linksafe
0755
_pydoctortemplates
--
25 Jul 2024 8.43 AM
root / linksafe
0755
test
--
25 Jul 2024 8.43 AM
root / linksafe
0755
__init__.py
0.658 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_appdirs.py
0.77 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_inotify.py
3.374 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_oldstyle.py
2.532 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_release.py
18.34 KB
18 Mar 2020 8.27 AM
root / linksafe
0644
_setup.py
13.946 KB
8 Mar 2020 10.44 AM
root / linksafe
0644
_shellcomp.py
24.248 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_textattributes.py
8.866 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_tzhelper.py
3.117 KB
26 May 2019 5.43 AM
root / linksafe
0644
_url.py
0.247 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
compat.py
23.196 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
components.py
13.92 KB
8 Mar 2020 10.44 AM
root / linksafe
0644
constants.py
0.531 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
context.py
3.93 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
deprecate.py
26.316 KB
18 Dec 2019 3.37 AM
root / linksafe
0644
failure.py
26.918 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
fakepwd.py
5.994 KB
26 May 2019 5.43 AM
root / linksafe
0644
filepath.py
57.507 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
formmethod.py
11.191 KB
26 May 2019 5.43 AM
root / linksafe
0644
htmlizer.py
3.458 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
lockfile.py
7.537 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
log.py
21.945 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
logfile.py
9.847 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
modules.py
26.505 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
monkey.py
2.175 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
procutils.py
1.386 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
randbytes.py
3.866 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
rebuild.py
9.051 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
reflect.py
19.021 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
release.py
1.164 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
roots.py
7.23 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
runtime.py
6.07 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
sendmsg.py
3.34 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
shortcut.py
2.2 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
syslog.py
3.643 KB
26 May 2019 5.43 AM
root / linksafe
0644
systemd.py
2.768 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
text.py
5.354 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
threadable.py
3.22 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
threadpool.py
9.609 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
twisted-completion.zsh
1.339 KB
15 Jun 2019 9.59 PM
root / linksafe
0644
url.py
0.238 KB
26 May 2019 5.43 AM
root / linksafe
0644
urlpath.py
8.871 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
usage.py
34.182 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
util.py
27.276 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
versions.py
0.314 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
win32.py
4.216 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
zippath.py
9.021 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
zipstream.py
9.528 KB
18 Dec 2019 3.08 AM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF