You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
442 B

9 years ago
9 years ago
  1. package proxy
  2. import (
  3. "net"
  4. tmspcli "github.com/tendermint/tmsp/client"
  5. )
  6. // This is goroutine-safe, but users should beware that
  7. // the application in general is not meant to be interfaced
  8. // with concurrent callers.
  9. type remoteAppConn struct {
  10. *tmspcli.TMSPClient
  11. }
  12. func NewRemoteAppConn(conn net.Conn, bufferSize int) *remoteAppConn {
  13. app := &remoteAppConn{
  14. TMSPClient: tmspcli.NewTMSPClient(conn, bufferSize),
  15. }
  16. return app
  17. }