summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-21 18:32:40 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-21 18:32:40 (GMT)
commit18c41073a7334ef97ff57dcc4216128f10403bcd (patch)
tree2c8c8b337959bde638d1db35effab394124fb85e /src
parentfb6188fb495e8c2acd0a069566938436740784d0 (diff)
added handover command to server
Diffstat (limited to 'src')
-rw-r--r--src/rhctl/playout_server.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rhctl/playout_server.go b/src/rhctl/playout_server.go
index 30577b8..fbcfeff 100644
--- a/src/rhctl/playout_server.go
+++ b/src/rhctl/playout_server.go
@@ -78,6 +78,14 @@ func (srv *PlayoutServer) handleControl(data string) {
srv.StateChanges <- srv.state
return
}
+ if strings.HasPrefix(data, "handover ") {
+ if len(data) <= 9 {
+ rhl.Printf("Server(%s) sent empty handover", srv.name)
+ return
+ }
+ // TODO: send command to swichctrl: &Command{Type: CmdServer, Args: data[9:], Response: nil}
+ return
+ }
rhl.Printf("Server(%s): ignoring unknown control message: %q", srv.name, data)
}