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.

22 lines
368 B

9 years ago
  1. package main
  2. import (
  3. . "github.com/tendermint/go-common"
  4. "github.com/tendermint/tmsp/example/golang"
  5. "github.com/tendermint/tmsp/server"
  6. )
  7. func main() {
  8. // Start the listener
  9. _, err := server.StartListener("tcp://0.0.0.0:46658", example.NewDummyApplication())
  10. if err != nil {
  11. Exit(err.Error())
  12. }
  13. // Wait forever
  14. TrapSignal(func() {
  15. // Cleanup
  16. })
  17. }