mirror of
https://github.com/mfontanini/libtins
synced 2026-01-28 20:44:26 +01:00
Fixed network naming on Windows.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#define TINS_NETWORK_INTERFACE_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
#include "hw_address.h"
|
||||
#include "ip_address.h"
|
||||
@@ -66,6 +67,16 @@ public:
|
||||
*/
|
||||
static NetworkInterface default_interface();
|
||||
|
||||
/**
|
||||
* Returns all available network interfaces.
|
||||
*/
|
||||
static std::vector<NetworkInterface> all();
|
||||
|
||||
/**
|
||||
* Returns a network interface for the given index.
|
||||
*/
|
||||
static NetworkInterface from_index(id_type identifier);
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user