コード例 #1
0
 internal static HandleRef getCPtr(SystemAddress obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #2
0
        public virtual RakNetGUID GetGuidFromSystemAddress(SystemAddress input)
        {
            RakNetGUID ret = new RakNetGUID(SLikeNetPINVOKE.RakPeerInterface_GetGuidFromSystemAddress(swigCPtr, SystemAddress.getCPtr(input)), false);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #3
0
 public virtual void ChangeSystemAddress(RakNetGUID guid, SystemAddress systemAddress)
 {
     SLikeNetPINVOKE.RakPeerInterface_ChangeSystemAddress(swigCPtr, RakNetGUID.getCPtr(guid), SystemAddress.getCPtr(systemAddress));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        public virtual SystemAddress GetInternalID()
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetInternalID__SWIG_2(swigCPtr), true);

            return(ret);
        }
コード例 #5
0
        public virtual SystemAddress GetMyBoundAddress(int socketIndex)
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetMyBoundAddress__SWIG_0(swigCPtr, socketIndex), true);

            return(ret);
        }
コード例 #6
0
 public override void OnReliabilityLayerNotification(string errorMessage, uint bitsUsed, SystemAddress remoteSystemAddress, bool isError)
 {
     SLikeNetPINVOKE.PacketLogger_OnReliabilityLayerNotification(swigCPtr, errorMessage, bitsUsed, SystemAddress.getCPtr(remoteSystemAddress), isError);
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #7
0
        public virtual SystemAddress GetSystemAddressFromIndex(uint index)
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetSystemAddressFromIndex(swigCPtr, index), true);

            return(ret);
        }
コード例 #8
0
        public AddressOrGUID CopyData(SystemAddress input)
        {
            AddressOrGUID ret = new AddressOrGUID(SLikeNetPINVOKE.AddressOrGUID_CopyData__SWIG_1(swigCPtr, SystemAddress.getCPtr(input)), false);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #9
0
        public uint GetPendingFilesToAddress(SystemAddress recipient)
        {
            uint ret = SLikeNetPINVOKE.FileListTransfer_GetPendingFilesToAddress(swigCPtr, SystemAddress.getCPtr(recipient));

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #10
0
        public ushort DownloadFromSubdirectory(FileList localFiles, string subdir, string outputSubdir, bool prependAppDirToOutputSubdir, SystemAddress host, FileListTransferCBInterface onFileCallback, PacketPriority _priority, char _orderingChannel, FileListProgress cb)
        {
            ushort ret = SLikeNetPINVOKE.DirectoryDeltaTransfer_DownloadFromSubdirectory__SWIG_1(swigCPtr, FileList.getCPtr(localFiles), subdir, outputSubdir, prependAppDirToOutputSubdir, SystemAddress.getCPtr(host), FileListTransferCBInterface.getCPtr(onFileCallback), (int)_priority, _orderingChannel, FileListProgress.getCPtr(cb));

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #11
0
 public AddressOrGUID(SystemAddress input) : this(SLikeNetPINVOKE.new_AddressOrGUID__SWIG_2(SystemAddress.getCPtr(input)), true)
 {
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #12
0
 public override void SendHelp(TransportInterface transport, SystemAddress systemAddress)
 {
     SLikeNetPINVOKE.LogCommandParser_SendHelp(swigCPtr, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #13
0
        public override bool OnCommand(string command, uint numParameters, string[] parameterList, TransportInterface transport, SystemAddress systemAddress, string originalString)
        {
            bool ret = SLikeNetPINVOKE.LogCommandParser_OnCommand(swigCPtr, command, numParameters, parameterList, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress), originalString);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #14
0
        public SystemAddress CopyData(SystemAddress input)
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.SystemAddress_CopyData(swigCPtr, SystemAddress.getCPtr(input)), false);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #15
0
        private string FormatLineHelper(string into, string dir, string type, uint packet, uint frame, string idToPrint, uint bitLen, ulong time, SystemAddress local, SystemAddress remote, uint splitPacketId, uint splitPacketIndex, uint splitPacketCount, uint orderingIndex)
        {
            string ret = SLikeNetPINVOKE.PacketLogger_FormatLineHelper__SWIG_1(swigCPtr, into, dir, type, packet, frame, idToPrint, bitLen, time, SystemAddress.getCPtr(local), SystemAddress.getCPtr(remote), splitPacketId, splitPacketIndex, splitPacketCount, orderingIndex);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #16
0
        public ushort SetupReceive(FileListTransferCBInterface handler, bool deleteHandler, SystemAddress allowedSender)
        {
            ushort ret = SLikeNetPINVOKE.FileListTransfer_SetupReceive(swigCPtr, FileListTransferCBInterface.getCPtr(handler), deleteHandler, SystemAddress.getCPtr(allowedSender));

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #17
0
 public virtual void FormatLine(ref string preInitializedStringBigEnoughToFitResult, string dir, string type, uint packet, uint frame, string idToPrint, uint bitLen, ulong time, SystemAddress local, SystemAddress remote, uint splitPacketId, uint splitPacketIndex, uint splitPacketCount, uint orderingIndex)
 {
     preInitializedStringBigEnoughToFitResult = FormatLineHelper(preInitializedStringBigEnoughToFitResult, dir, type, packet, frame, idToPrint, bitLen, time, local, remote, splitPacketId, splitPacketIndex, splitPacketCount, orderingIndex);
 }
コード例 #18
0
 public void Send(FileList fileList, RakPeerInterface rakPeer, SystemAddress recipient, ushort setID, PacketPriority priority, char orderingChannel, IncrementalReadInterface _incrementalReadInterface)
 {
     SLikeNetPINVOKE.FileListTransfer_Send__SWIG_1(swigCPtr, FileList.getCPtr(fileList), RakPeerInterface.getCPtr(rakPeer), SystemAddress.getCPtr(recipient), setID, (int)priority, orderingChannel, IncrementalReadInterface.getCPtr(_incrementalReadInterface));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #19
0
        public virtual int GetIndexFromSystemAddress(SystemAddress systemAddress)
        {
            int ret = SLikeNetPINVOKE.RakPeerInterface_GetIndexFromSystemAddress(swigCPtr, SystemAddress.getCPtr(systemAddress));

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #20
0
 public void Replace(SystemAddress input, SystemAddress filler, uint position, string file, uint line)
 {
     SLikeNetPINVOKE.RakNetListSystemAddress_Replace__SWIG_0(swigCPtr, SystemAddress.getCPtr(input), SystemAddress.getCPtr(filler), position, file, line);
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #21
0
        public virtual SystemAddress GetInternalID(SystemAddress systemAddress, int index)
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetInternalID__SWIG_0(swigCPtr, SystemAddress.getCPtr(systemAddress), index), true);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #22
0
        public SystemAddress Get(uint position)
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakNetListSystemAddress_Get(swigCPtr, position), false);

            return(ret);
        }
コード例 #23
0
        public virtual SystemAddress GetExternalID(SystemAddress target)
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetExternalID(swigCPtr, SystemAddress.getCPtr(target)), true);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #24
0
        public SystemAddress Pop()
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakNetListSystemAddress_Pop(swigCPtr), false);

            return(ret);
        }
コード例 #25
0
        public virtual SystemAddress GetMyBoundAddress()
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeerInterface_GetMyBoundAddress__SWIG_1(swigCPtr), true);

            return(ret);
        }
コード例 #26
0
        public bool OpenNAT(RakNetGUID destination, SystemAddress facilitator)
        {
            bool ret = SLikeNetPINVOKE.NatPunchthroughClient_OpenNAT(swigCPtr, RakNetGUID.getCPtr(destination), SystemAddress.getCPtr(facilitator));

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #27
0
        public virtual bool GetClientPublicKeyFromSystemAddress(SystemAddress input, string client_public_key)
        {
            bool ret = SLikeNetPINVOKE.RakPeerInterface_GetClientPublicKeyFromSystemAddress(swigCPtr, SystemAddress.getCPtr(input), client_public_key);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #28
0
 public void GetUPNPPortMappings(string externalPort, string internalPort, SystemAddress natPunchthroughServerAddress)
 {
     SLikeNetPINVOKE.NatPunchthroughClient_GetUPNPPortMappings(swigCPtr, externalPort, internalPort, SystemAddress.getCPtr(natPunchthroughServerAddress));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #29
0
        public virtual RakNetStatistics GetStatistics(SystemAddress systemAddress)
        {
            IntPtr           cPtr = SLikeNetPINVOKE.RakPeerInterface_GetStatistics__SWIG_1(swigCPtr, SystemAddress.getCPtr(systemAddress));
            RakNetStatistics ret  = (cPtr == IntPtr.Zero) ? null : new RakNetStatistics(cPtr, false);

            if (SLikeNetPINVOKE.SWIGPendingException.Pending)
            {
                throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #30
0
        public override SystemAddress GetMyBoundAddress()
        {
            SystemAddress ret = new SystemAddress(SLikeNetPINVOKE.RakPeer_GetMyBoundAddress__SWIG_1(swigCPtr), true);

            return(ret);
        }