2
0
mirror of https://github.com/soheilhy/cmux.git synced 2026-08-05 11:44:11 +08:00

Add an example for recursive muxing

This commit is contained in:
Soheil Hassas Yeganeh
2015-08-01 12:07:30 -04:00
parent fbd0877935
commit 51556c6df5
2 changed files with 91 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ func serveHTTPS(l net.Listener) {
serveHTTP1(tlsl)
}
// This is an example is serving HTTP and HTTPS on the same port.
// This is an example for serving HTTP and HTTPS on the same port.
func Example_bothHTTPAndHTTPS() {
// Create the TCP listener.
l, err := net.Listen("tcp", "127.0.0.1:50051")