for _, ep := range rtmgr.Eps {
go c.send_sync(ep, policies, channel, rmrcallid)
}
- for rEp, id := range rtmgr.RmrEp {
- go c.send_rt_process(rEp,id,policies,rmrcallid)
- }
rmrcallid++
return false
}
-func (c *RmrPush) CreateEndpoint(payload string,rmrsrc string)*rtmgr.Endpoint {
+func (c *RmrPush) CreateEndpoint(payload string,rmrsrc string)(ep *string,whid int) {
return c.createEndpoint(payload,rmrsrc, c)
}
-func (c *RmrPush) DistributeToEp(policies *[]string, ep *rtmgr.Endpoint) error {
+func (c *RmrPush) DistributeToEp(policies *[]string, ep string, whid int) error {
xapp.Logger.Debug("Invoked: sbi.DistributeToEp")
xapp.Logger.Debug("args: %v", *policies)
rmrdynamiccallid = 201
}
- go c.send_data(ep, policies,rmrdynamiccallid)
+ go c.sendDynamicRoutes(ep, whid, policies,rmrdynamiccallid)
rmrdynamiccallid++
return nil
}
-func (c *RmrPush) send_rt_process(ep string,whid int, policies *[]string, call_id int) bool {
+func (c *RmrPush) sendDynamicRoutes(ep string,whid int, policies *[]string, call_id int) bool {
xapp.Logger.Debug("Invoked send_rt_process to endpoint: " + ep + " call_id: " + strconv.Itoa(call_id) + "whid: " + strconv.Itoa(whid))
var state int
var retstr string