Question is really simple. I need a tool to convert char* to ip adress and use it in
char*
sockaddr_in.s_addr
arpa/inet.h has
Win32 provides its own implementation of the sockets API (Winsock) which uses slightly different headers.
From the MSDN for inet_addr:
Header Winsock2.h
arpa/inet.h is the include used on Unix-like systems.
arpa/inet.h
On Windows, you must use winsock2.h.
winsock2.h
Example from the MSDN.