Add access to the network interfaces

This commit is contained in:
Baptiste Wicht 2016-07-08 22:23:15 +02:00
parent 9d56e0d30e
commit a3bd976bd5
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,8 @@ void init();
size_t number_of_interfaces();
interface_descriptor& interface(size_t index);
} // end of network namespace
#endif

View File

@ -61,3 +61,7 @@ void network::init(){
size_t network::number_of_interfaces(){
return interfaces.size();
}
interface_descriptor& network::interface(size_t index){
return interfaces[index];
}