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

RAII'd some code. Everything(hopefully) uses IPv4Address now.

This commit is contained in:
Matias Fontanini
2012-08-27 00:16:56 -03:00
parent 1b08d1af71
commit da8c77c77e
20 changed files with 206 additions and 267 deletions

View File

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