Created
July 18, 2017 15:07
-
-
Save Xhendos/794ea90ae53b9798be77846551f17052 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
/* | |
* Describes getnameinfo() | |
* Used to get the IPv4 or IPv6 address from an interface. | |
*/ | |
#include <netdb.h> | |
/* | |
* Describes getifaddrs() which returns an integer. | |
* Describes freeifaddrs() which returns a void. | |
* Used to get interface information. | |
* | |
*/ | |
#include <ifaddrs.h> | |
/* | |
* | |
* | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment