According to bsdsocket.doc autodoc, the following should retrieve the IP address associated with a certain network interface.
ISocket->QueryInterfaceTags()
IFQ_Address (struct sockaddr *)
struct sockaddr {
u_char sa_len;
u_char sa_family;
char sa_data[14];
};
1) How the IP address value is returned?
2) Is it possible that a statically set IP address is unknown to its configured network interface?
Post SOLVED.
I got it to work, the ip address value returned by QueryInterfaceTags() has to be casted to struct sockaddr_in* before using it.
Well this is not documented at all.
Regards