摘要:
转自:http://stackoverflow.com/questions/2886719/unix-sockets-in-goServer:package mainimport "net"import "fmt"func echoServer(c net.Conn) { for { buf := make([]byte, 512) nr, err := c.Read(buf) if err != nil { return } data := buf[0:nr] fmt.Printf... 阅读全文
posted @ 2013-03-18 15:08 Bill Yuan 阅读(672) 评论(0) 推荐(0) 编辑