error C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warn
InetPton(AF_INET, CString(addr.c_str()), &serv_addr.sin_addr);
https://jingyan.baidu.com/article/1709ad8041dca64634c4f006.html
https://blog.csdn.net/XVD217/article/details/52239270
https://blog.csdn.net/weixin_38278993/article/details/82383367