Back to Jetson Inference

Jetson Inference: jetson

docs/html/Networking_8h.html

latest3.3 KB
Original Source

| | Jetson Inference

DNN Vision Library |

Classes | Macros | Functions

Networking.h File Reference

#include <string>
#include <vector>
#include "IPv4.h"
#include "IPv6.h"

Go to the source code of this file.

|

Classes

| | struct | NetworkInterface | | | Info about a particular network interface. More...
| | | | struct | NetworkInterface::IPv4 | | | | struct | NetworkInterface::IPv6 | | |

|

Macros

| | #define | LOG_NETWORK "[network] " | | | LOG_NETWORK logging string. More...
| | |

|

Functions

| | std::string | getHostname () | | | Retrieve the host system's network hostname. More...
| | | | std::string | getHostByName (const char *name, uint32_t retries=10) | | | Resolve the IP address of a given hostname or domain using DNS lookup, and return it as a string. More...
| | | | uint32_t | getHostByName (const char *name, void *ipAddress, uint32_t size, uint32_t retries=10) | | | Resolve the IP address of a given hostname or domain using DNS lookup. More...
| | | | std::vector< NetworkInterface > | getNetworkInterfaces () | | | Retrieve info about the different IPv4/IPv6 network interfaces of the system. More...
| | | | int | findNetworkInterface (const std::vector< NetworkInterface > &interfaces, const char *name) | | | Find the index of a network interface by name from the list of interfaces. More...
| | | | void | printNetworkInterfaces (const std::vector< NetworkInterface > &interfaces) | | | Print out a list of network interfaces. More...
| | |

Function Documentation

findNetworkInterface()

| int findNetworkInterface | ( | const std::vector< NetworkInterface > & | interfaces, | | | | const char * | name | | | ) | | |

Find the index of a network interface by name from the list of interfaces.

Returnsthe index of the interface, or -1 if it was not found.