mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 00:26:44 -04:00
Add access to the network interfaces
This commit is contained in:
parent
9d56e0d30e
commit
a3bd976bd5
@ -26,6 +26,8 @@ void init();
|
||||
|
||||
size_t number_of_interfaces();
|
||||
|
||||
interface_descriptor& interface(size_t index);
|
||||
|
||||
} // end of network namespace
|
||||
|
||||
#endif
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user