Created
October 27, 2012 08:55
-
-
Save hyqhyq3/3963642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conn,err := net.Dial("tcp", "test.com:1024") | |
if err != nil { | |
//这里如何确定出错的原因 | |
//是因为主机不可达,还是因为不能解析域名,或者说是连接被拒绝? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment