Connection Pool
go get github.com/tristanwietsma/netpool
p, err := netpool.NewConnectionPool("<type>", "<server ip address>", <pool size>)
c, err := p.Connect()
Connections implement Write
and Read
.
err := c.Write([]byte("ping"))
msg, err := c.Read()
p.Release(c)
Build and start the echoServer
, then go test
as normal.