Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.27 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.27 KB

SPDY/QUIC enabled server/client written in Go

We currently have server, client, and reverse proxy implementation.

How to build

Due to Go 1.4's cgo restrictions, use an environment variable like below to build your projects. This restriction will be removed from Go 1.5.

CGO_CFLAGS="-I$GOPATH/src/github.com/devsisters/goquic/libquic/boringssl/include"
CGO_LDFLAGS="-L$GOPATH/src/github.com/devsisters/goquic/lib/$GOOS_$GOARCH"

go build $GOPATH/src/github.com/devsisters/goquic/example/server.go
go build $GOPATH/src/github.com/devsisters/goquic/example/client.go
go build $GOPATH/src/github.com/devsisters/goquic/example/reverse_proxy.go

For example, building goquic example server in Mac:

CGO_CFLAGS="-I$GOPATH/src/github.com/devsisters/goquic/libquic/boringssl/include" \
CGO_LDFLAGS="-L$GOPATH/src/github.com/devsisters/goquic/lib/darwin_amd64" \
go build $GOPATH/src/github.com/devsisters/goquic/example/server.go

In Linux:

CGO_CFLAGS="-I$GOPATH/src/github.com/devsisters/goquic/libquic/boringssl/include" \
CGO_LDFLAGS="-L$GOPATH/src/github.com/devsisters/goquic/lib/linux_amd64" \
go build $GOPATH/src/github.com/devsisters/goquic/example/server.go