struct addrinfo hints;
ZeroMemory( &hints, sizeof(hints) );
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
getaddrinfo(argv[1], argv[2], &hints, &result);
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/35259.html
標籤:網絡編程
