Exemple #1
0
            /// <summary>Get the given target's IP:Port.</summary>
            public string GetTargetIPPort(int target)
            {
                PS3TMAPI.InitTargetComms();
                PS3TMAPI.TargetInfo TargetInfo = new PS3TMAPI.TargetInfo()
                {
                    Flags  = PS3TMAPI.TargetInfoFlag.TargetID,
                    Target = target
                };
                PS3TMAPI.GetTargetInfo(ref TargetInfo);
                Parameters.IPPort = TargetInfo.Info.Split(' ').Last();

                return(Parameters.IPPort);
            }
Exemple #2
0
            /// <summary>Get the given target name.</summary>
            public string GetTargetName(int target)
            {
                PS3TMAPI.InitTargetComms();
                PS3TMAPI.TargetInfo TargetInfo = new PS3TMAPI.TargetInfo()
                {
                    Flags  = PS3TMAPI.TargetInfoFlag.TargetID,
                    Target = target
                };
                PS3TMAPI.GetTargetInfo(ref TargetInfo);
                Parameters.ConsoleName = TargetInfo.Name;

                return(Parameters.ConsoleName);
            }