SpdyStream A multiplexed stream library using spdy Usage Client example (connecting to mirroring server without auth) ```go package main import ( "fmt" "github.com/docker/spdystream" "net" "net/http" ) func main() { conn, err := net.Dial("tcp", "localhost:8080") if err != nil { panic(err) } spdyConn, err := spdystream.NewConnection(conn, false) if err != nil { panic(err) } go spdyConn.Serve(spdystream.NoOpStreamHandler) stream, err := spdyConn.CreateStream(http.Header{}, nil, false) if err != nil { panic(err) } } ``` Server example (mirroring server without auth) ```go package main import ( "github.com/docker/spdystream" "net" ) func main() { listener, err := net.Listen("tcp", "localhost:8080") if err != nil { panic(err) } for { conn, err := listener.Accept() if err != nil { panic(err) } spdyConn, err := spdystream.NewConnection(conn, true) if err != nil { panic(err) } go spdyConn.Serve(spdystream.MirrorStreamHandler) } } ``` Copyright and license Copyright © 2014-2015 Docker, Inc.
spdystream is a tool in the Languages category of a tech stack.
No pros listed yet.
No cons listed yet.
What are some alternatives to spdystream?
Go packages for low-level interaction with the operating system.