Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Go 创建一个多协议服务器。一台服务器是 HTTP 服务器,监听 80。另一台是定制协议(通过 TCP)在 8088 端口上运行。Go 有可能吗?
例如:
func serveHTTP() { http.ListenAndServe(...) } func serveCustom() { net.Listen("tcp", ...) } go serveHTTP() go serveCustom()