Skip to content

Instantly share code, notes, and snippets.

@Xhendos
Created July 18, 2017 15:07
Show Gist options
  • Save Xhendos/794ea90ae53b9798be77846551f17052 to your computer and use it in GitHub Desktop.
Save Xhendos/794ea90ae53b9798be77846551f17052 to your computer and use it in GitHub Desktop.
#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