'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS 解决方法 vs2019 inet_pton(AF_INET, addr, &sin.sin_addr);