tendermint/proxy/remote_app_conn.go

22 lines
449 B
Go
Raw Normal View History

2015-12-01 20:12:01 -08:00
package proxy
import (
"net"
2016-01-22 15:48:13 -08:00
tmspcli "github.com/tendermint/tmsp/client/golang"
2015-12-01 20:12:01 -08:00
)
// This is goroutine-safe, but users should beware that
// the application in general is not meant to be interfaced
// with concurrent callers.
type remoteAppConn struct {
2016-01-22 15:48:13 -08:00
*tmspcli.TMSPClient
2015-12-01 20:12:01 -08:00
}
func NewRemoteAppConn(conn net.Conn, bufferSize int) *remoteAppConn {
app := &remoteAppConn{
2016-01-22 15:48:13 -08:00
TMSPClient: tmspcli.NewTMSPClient(conn, bufferSize),
2015-12-01 20:12:01 -08:00
}
return app
}