blob: 849adb6e5cfb6410652fe4ae8f8e6823e6c66868 [file] [log] [blame]
package main
import (
"flag"
"veyron.io/veyron/veyron/lib/signals"
// TODO(cnicolaou,benj): figure out how to support roaming as a chrome plugin
"veyron.io/veyron/veyron/profiles/roaming"
"veyron.io/veyron/veyron2/rt"
"veyron.io/wspr/veyron/services/wsprd/wspr"
)
func main() {
port := flag.Int("port", 8124, "Port to listen on.")
identd := flag.String("identd", "", "identd server name. Must be set.")
flag.Parse()
rt.Init()
proxy := wspr.NewWSPR(*port, roaming.New, &roaming.ListenSpec, *identd, nil)
defer proxy.Shutdown()
proxy.Listen()
go func() {
proxy.Serve()
}()
<-signals.ShutdownOnSignals()
}