Go语言练习 TCPserver 与 TCPclient实现
摘要:
serverTcp.go 1 package main 2 3 import ( 4 "net" 5 "fmt" 6 "os" 7 "time" 8 ) 9 10 func checkError(err error){11 if err != nil {12 fmt.Fprintf(os.Stderr,"Fatal error: %s",err.Error())13 os.Exit(1)14 }15 }16 17 func han... 阅读全文
posted @ 2013-01-24 18:21 vince67 阅读(435) 评论(0) 推荐(0) 编辑