diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-04-21 18:32:40 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-04-21 18:32:40 (GMT) |
commit | 18c41073a7334ef97ff57dcc4216128f10403bcd (patch) | |
tree | 2c8c8b337959bde638d1db35effab394124fb85e | |
parent | fb6188fb495e8c2acd0a069566938436740784d0 (diff) |
added handover command to server
-rw-r--r-- | src/rhctl/playout_server.go | 8 |
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) } |