'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS 解决方法

vs2019

 inet_pton(AF_INET, addr, &sin.sin_addr);

原文地址:https://www.cnblogs.com/Galesaur-wcy/p/15030254.html