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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user