Inet API in C++