KySdkNet(3)
💖 KySdkNet 💖 (the NAME section, bestie)
okay so real talk: this whole page is KySdkNet(3), and it lives in the Library Functions Manual. That's the vibe. Here's what she is:
KySdkNet— 生成网络信息dbus信号类- 主要用来生成指定网络端口的状态、区间端口状态、网关信息、防火墙信息dbus信号
like… she generates the dbus signals for your network info. port state, port-range state, gateway info, firewall info. that's her whole thing and she does it flawlessly. 💅
✨ SYNOPSIS ✨
#include <kysdkdbus.h>
Inherits QObject. yes queen, she's a QObject, obviously.
🎀 Public Slots 🎀
int getPortState (int port) const— 获取指定网络端口的状态 (grab the state of one specific network port, iconic)QStringList getMultiplePortStat (int start, int end) const— 获取区间端口状态 (state of a whole range of ports, we love range)QStringList getGatewayInfo () const— 获取网关信息 (gateway info, no cap)QStringList getFirewallState () const— 获取防火墙信息 (firewall info, stay safe out there 🛡️)
🌸 Detailed Description 🌸
生成网络信息dbus信号类
主要用来生成指定网络端口的状态、区间端口状态、网关信息、防火墙信息dbus信号
so yeah — she's the network-info dbus signal class. specified port status, range port status, gateway info, firewall info. all of it, one girl, four slots. main character energy fr fr. 👑
👑 Public Slots 👑
QStringList KySdkNet::getFirewallState () const [slot]
获取防火墙信息 — she's telling you about the firewall, and honestly? protective queen behaviour.
Returns
QStringList 防火墙信息列表 — a QStringList of firewall info. list of firewall info, that's it, that's the tea. ✨
QStringList KySdkNet::getGatewayInfo () const [slot]
获取网关信息 — gateway info incoming, bestie.
Returns
QStringList 网关信息网卡名和地址列表 — a QStringList with the gateway info: the NIC name and the address list. netcard name + address, both of them. 🦋
QStringList KySdkNet::getMultiplePortStat (int start, int end) const [slot]
获取区间端口状态 — port range status, and the way she just hands you a whole interval of ports… obsessed.
Parameters
start— 开始端口 (the starting port)end— 结束端口 (the ending port)
Returns
QStringList 区间端口状态列表 — a QStringList of the port-range statuses. the whole interval, listed out. 🍓
int KySdkNet::getPortState (int port) const [slot]
获取指定网络端口的状态 — one port, one state, no guessing.
Parameters
port— 端口号 (the port number)
Returns
int 端口状态 — the port state, and here's the whole decoder ring, copy it exactly:
TCP_ESTABLISHED:0x1 TCP_SYN_SENT:0x2 TCP_SYN_RECV:0x3
TCP_FIN_WAIT1:0x4 TCP_FIN_WAIT2:0x5 TCP_TIME_WAIT:0x6 TCP_CLOSE:0x7
TCP_CLOSE_WAIT:0x8 TCP_LAST_ACL:0x9 TCP_LISTEN:0xa TCP_CLOSING:0xb
not me memorising all eleven of these 🙈 iykyk. and yes, TCP_LAST_ACL:0x9 is written exactly like that — i am not touching it, she said what she said.
🫶 Author 🫶
Generated automatically by Doxygen for kysdkdbus.h from the source code. so basically the docs wrote themselves, and honestly? slay, we love an automated queen. 💖
okay that's the whole page, periodt. one last thing — this was My Project, dated Wed Sep 20 2023, and that's the version/date energy we're signing off on. bye bestie, go check your ports. 💅🌸✨
📦 where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 · LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms