the lines starting with inet are the ipv4 addresses, the ones with inet6 are the ipv6 addresses. read the addresses off the file using a std::ifstream.
note: if you want only externally visible ip addresses, discard addresses like the ipv4 address 127.0.0.x and the ipv6 address 0000:0000:0000:0000:0000:0000:0000:x ( ::x ). these are loopback addresses on lo0. also ignore any ipv6 address starting with fe80 (this is the ipv6 link-local prefix) or ipv4 addresses starting with 169.254.0. in the above example, the only address externally visible is the ipv4 address 192.168.2.192. you may have more than one of these; eg. one for your ethernet and another for 802.11n.
I am doing a project socket programming in C I do the connection and they talking to each other. I want to modify the code in the server I want to know how to Save the IP address of the registered client and map it to the name the client
provided when registering, and also I want to know how to Accept the invite requests and search for the callee IP address to forward the
In client code, I want to know how to Send an invite request with the callee name.
and aslo how to know Accept invite requests from the caller..
public class GrossmontBank
//class variables (global - accessible throughout this class)
//scanner object to be used throughout
private static Scanner input = new Scanner(System.in);