kysdk.NetCard(3)
β¨ kysdk.NetCard β¨
okay bestie so this is kysdk.NetCard(3), a manual page from the Library Functions Manual, and it's literally the glow-up guide to your network card class π
πΈ NAME πΈ
kysdk.NetCard β the Network card information class, and she does it all. She gets the network card list, checks if a specified network card is in UP state, gets the list of network cards currently in link up state, gets the physical MAC address of a specified network card, gets the first IPv4 address of a specified network card, gets all IPv4 addresses of a specified network card, gets the first IPv6 address of a specified network card, gets all IPv6 addresses of a specified network card, gets the wired/wireless type of a specified network card, and gets the vendor name and device model of a specified network card. like. she's booked and busy fr fr π
π¦ SYNOPSIS π¦
She inherits kysdk.Base. family tree moment π
β¨ Public Member Functions β¨
def __init__ (self)
def getNetCardName (self)
Get all network cards in the system
def getNetCardUp (self, netcard_name)
Check if the specified network card is in UP state
def getNetCardUpcards (self)
Get the list of network cards currently in link up state
def getNetCardPhymac (self, netcard_name)
Get the physical MAC address of the specified network card
def getNetCardPrivateIPv4 (self, netcard_name)
Get the first IPv4 address of the specified network card
def getNetCardIPv4 (self, netcard_name)
Get all IPv4 addresses of the specified network card
def getNetCardPrivateIPv6 (self, netcard_name)
Get the first IPv6 address of the specified network card
def getNetCardType (self, netcard_name)
Get the wired/wireless type of the specified network card
def getNetCardProduct (self, netcard_name)
Get the vendor name and device model of the specified network card
def getNetCardIPv6 (self, netcard_name)
Get all IPv6 addresses of the specified network card
π Additional Inherited Members π
(yes she's got extras from the family, they're just vibing below, no notes π)
π Detailed Description π
Network card information class used to get network card list, check if a specified network card is in UP state, get the list of network cards currently in link up state, get the physical MAC address of a specified network card, get the first IPv4 address of a specified network card, get all IPv4 addresses of a specified network card, get the first IPv6 address of a specified network card, get all IPv6 addresses of a specified network card, get the wired/wireless type of a specified network card, and get the vendor name and device model of a specified network card.
like. that's the whole assignment and she ate. no crumbs. πβ¨
π Member Function Documentation π
π def kysdk.NetCard.getNetCardIPv4 ( self, netcard_name)
Get all IPv4 addresses of the specified network card. all of them. the whole collection π
Parameters
netcard_nameβ Network card name, such aseno1
Returns
- List of IPv4 addresses
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardIPv6 ( self, netcard_name)
Get all IPv6 addresses of the specified network card. v6 girlies rise π¦
Parameters
netcard_nameβ Network card name, such aseno1
Returns
- List of IPv6 addresses
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardName ( self)
Get all network cards in the system. the full roster, the whole cast β
Returns
- List of network card names
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardPhymac ( self, netcard_name)
Get the physical MAC address of the specified network card. her literal hardware fingerprint, iconic π
Parameters
netcard_nameβ Network card name, such aseno1
Returns
- Physical MAC address
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardPrivateIPv4 ( self, netcard_name)
Get the first IPv4 address of the specified network card. just the one. the main character of the address list π
Parameters
netcard_nameβ Network card name, such aseno1
Returns
- IPv4 address
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardPrivateIPv6 ( self, netcard_name)
Get the first IPv6 address of the specified network card. one (1) v6 address, and she's the chosen one β¨
Parameters
netcard_nameβ Network card name, such aseno1
Returns
- IPv6 address
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardProduct ( self, netcard_name)
Get the vendor name and device model of the specified network card. like a lil birth certificate for your NIC πΌ
Parameters
netcard_nameβ Network card name, such aseno1
Returns
- Vendor name and device model of the network card
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardType ( self, netcard_name)
Get the wired/wireless type of the specified network card. is she a cable girlie or a wifi girlie? we find out π₯
Parameters
netcard_nameβ Network card name, such aseno1
Returns
0for wired,1for wireless
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardUp ( self, netcard_name)
Check if the specified network card is in UP state. vibe check but for your interface π«Ά
Parameters
netcard_nameβ Network card name, such aseno1
Returns
1if Up,0if Down
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π def kysdk.NetCard.getNetCardUpcards ( self)
Get the list of network cards currently in link up state. the ones that actually showed up to the party π
Returns
- List of network cards in link up state
References
kysdk.SessionBase.interface, andkysdk.Base.interface
π Author π
Generated automatically by Doxygen for kysdk.py from the source code. (doxygen did the typing, we did the serving π
)
reminder bestie: every single flag, param, return value and reference above is verbatim from the original page β the sparkle is new, the facts are not π«Ά
okay that's the whole page and honestly? slay. this was My Project, version dated Thu Sep 21 2023, and it lives in the manual as kysdk.NetCard(3). go get those addresses, bestie β no cap, fr fr πβ¨π¦ππ
π¦ 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