1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 20:24:26 +01:00

Done minor modifications on Utils.

This commit is contained in:
Matias Fontanini
2012-08-13 15:28:42 -03:00
parent e2223bf406
commit 0014d5e0f7
5 changed files with 50 additions and 20 deletions

View File

@@ -53,7 +53,13 @@ public:
};
/**
* \brief Default constructor.
* Returns a NetworkInterface object associated with the default
* interface.
*/
static NetworkInterface default_interface();
/**
* Default constructor.
*/
NetworkInterface();
@@ -65,11 +71,15 @@ public:
NetworkInterface(const std::string &name);
/**
* \brief Constructor to allow implicit conversions from const char*.
* \brief Constructor to allow implicit conversions from string
* literals.
*
* \param name The name of the interface this object will abstract.
*/
NetworkInterface(const char *name);
template<size_t n>
NetworkInterface(const char (&name)[n]) {
iface_id = resolve_index(name);
}
/**
* \brief Constructs a NetworkInterface from an ip address.