tendermint/proxy/remote_app_conn.go

22 lines
449 B
Go

package proxy
import (
"net"
tmspcli "github.com/tendermint/tmsp/client/golang"
)
// 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 {
*tmspcli.TMSPClient
}
func NewRemoteAppConn(conn net.Conn, bufferSize int) *remoteAppConn {
app := &remoteAppConn{
TMSPClient: tmspcli.NewTMSPClient(conn, bufferSize),
}
return app
}