public bool GetConnectionListForRemoteSystem(RakNetGUID remoteSystemGuid, SystemAddress[] saOut, RakNetGUID[] guidOut, ref uint inOutLength)
        {
            uint minLength = inOutLength;

            if (guidOut.Length < minLength)
            {
                minLength = (uint)guidOut.Length;
            }

            if (saOut.Length < minLength)
            {
                minLength = (uint)saOut.Length;
            }

            RakNetListRakNetGUID    passListGUID          = new RakNetListRakNetGUID();
            RakNetListSystemAddress passListSystemAddress = new RakNetListSystemAddress();

            bool returnVal = GetConnectionListForRemoteSystemHelper(remoteSystemGuid, passListSystemAddress, passListGUID, ref inOutLength);

            if (inOutLength < minLength)
            {
                minLength = (uint)inOutLength;
            }

            for (int i = 0; i < minLength; i++)
            {
                guidOut[i] = passListGUID[i];
                saOut[i]   = passListSystemAddress[i];
            }
            return(returnVal);
        }
 public RakNetListSystemAddress(RakNetListSystemAddress original_copy) : this(SLikeNetPINVOKE.new_RakNetListSystemAddress__SWIG_1(RakNetListSystemAddress.getCPtr(original_copy)), true)
 {
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void GetVerifiedJoinRequiredProcessingList(RakNetGUID host, RakNetListSystemAddress addresses, RakNetListRakNetGUID guids, SWIGTYPE_p_DataStructures__ListT_SLNet__BitStream_p_t userData)
 {
     SLikeNetPINVOKE.FullyConnectedMesh2_GetVerifiedJoinRequiredProcessingList(swigCPtr, RakNetGUID.getCPtr(host), RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids), SWIGTYPE_p_DataStructures__ListT_SLNet__BitStream_p_t.getCPtr(userData));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public virtual void GetSystemList(RakNetListSystemAddress addresses, RakNetListRakNetGUID guids)
 {
     SLikeNetPINVOKE.RakPeerInterface_GetSystemList(swigCPtr, RakNetListSystemAddress.getCPtr(addresses), RakNetListRakNetGUID.getCPtr(guids));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public RakNetListSystemAddress CopyData(RakNetListSystemAddress original_copy)
        {
            RakNetListSystemAddress ret = new RakNetListSystemAddress(SLikeNetPINVOKE.RakNetListSystemAddress_CopyData(swigCPtr, RakNetListSystemAddress.getCPtr(original_copy)), false);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #6
0
        public virtual bool GetConnectionList(out SystemAddress[] remoteSystems, ref ushort numberOfSystems)
        {
            RakNetListSystemAddress passVal = new RakNetListSystemAddress();
            bool returnVal = GetConnectionList(passVal, ref numberOfSystems);

            SystemAddress[] outVal = new SystemAddress[numberOfSystems];
            for (int i = 0; i < numberOfSystems; i++)
            {
                outVal[i] = passVal[i];
            }
            remoteSystems = outVal;
            return(returnVal);
        }
        private bool GetConnectionListForRemoteSystemHelper(RakNetGUID remoteSystemGuid, RakNetListSystemAddress saOut, RakNetListRakNetGUID guidOut, ref uint inOutLength)
        {
            bool ret = SLikeNetPINVOKE.ConnectionGraph2_GetConnectionListForRemoteSystemHelper(swigCPtr, RakNetGUID.getCPtr(remoteSystemGuid), RakNetListSystemAddress.getCPtr(saOut), RakNetListRakNetGUID.getCPtr(guidOut), ref inOutLength);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #8
0
        public bool GetConnectionList(RakNetListSystemAddress remoteSystems, ref ushort numberOfSystems)
        {
            bool ret = SLikeNetPINVOKE.RakPeerInterface_GetConnectionList(swigCPtr, RakNetListSystemAddress.getCPtr(remoteSystems), ref numberOfSystems);

            return(ret);
        }
 internal static HandleRef getCPtr(RakNetListSystemAddress obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }