netdbdemo

This commit is contained in:
xushiwei
2024-07-19 11:22:31 +08:00
parent bc90c6b82f
commit 199aaf2d05

View File

@@ -7,8 +7,8 @@ import (
func main() {
var hints net.AddrInfo
hints.AiFamily = net.AF_UNSPEC
hints.AiSockType = net.SOCK_STREAM
hints.Family = net.AF_UNSPEC
hints.SockType = net.SOCK_STREAM
host := "httpbin.org"
port := "80"