Skip to main content
Known Participant
June 4, 2009
Question

Making & tracking multi admin call to FMS

  • June 4, 2009
  • 1 reply
  • 715 views

Hello

I am writing an app that track data/stats on multi FMS servers and that is working fine for my own custom server side functions. What I do is loop thru a list of IP of my FMS servers, call each IP and I also pass the IP to the server side function that get return and I can have my Responder object plug the returning data into an associate arrays (using IP as index) for reporting. Now my problem is when I used the Admin API.

Here I was doing the same thing except I don't know the IP of the respnding FMS and I need to capture the data (into arrays etc). I had tried extending the Responder class so I can plug in the IP of the calling server but so far no good. I guess I need a way to know who is calling back - Any ideas.

Thanks

    This topic has been closed for replies.

    1 reply

    June 4, 2009

    Why not create a class that handles the connection to the admin service, and then create an instance of that class for each server? That way, each instance of the class has it's own netconnection and methods on the netconnection, and the responder's scope will the the class instance.

    Known Participant
    June 5, 2009

    I a bit new to AS3 but I am creating ungiue Netconnections for each server(& nsStatus) and I know who is calling what but the response object is where I loss track of things. So i guess you are saying to created a specail class that wraps all of this together including Responer object which will be within (within scope) new NetConnecton class? So to get the IP of server (I can have many) I would 'this.parent.fms_ip' or something like this ? Past stuff has been FMS AS1.5 and client AS2 so learning AS3 the hard way.

    Thanks

    Known Participant
    June 8, 2009

    Just to wrap this up I did as Jay said and this solved my issue.

    Thanks