From 18c41073a7334ef97ff57dcc4216128f10403bcd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 21 Apr 2016 20:32:40 +0200 Subject: added handover command to server 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) } -- cgit v0.10.2