當前位置: 首頁>>代碼示例>>C#>>正文


C# RakNet.SystemAddress類代碼示例

本文整理匯總了C#中RakNet.SystemAddress的典型用法代碼示例。如果您正苦於以下問題:C# SystemAddress類的具體用法?C# SystemAddress怎麽用?C# SystemAddress使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SystemAddress類屬於RakNet命名空間,在下文中一共展示了SystemAddress類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Initialise

	public void Initialise(RakNet.SystemAddress _cSystemAddress, RakNet.RakNetGUID _cGuid, bool _bHost)
	{
		ResetNetworkViewSteam();

		m_cSystemAddress = new RakNet.SystemAddress(_cSystemAddress.ToString(), _cSystemAddress.GetPort());
		m_cGuid = new RakNet.RakNetGUID(_cGuid.g);
		m_bHost = _bHost;
	}
開發者ID:nulhax,項目名稱:VOID,代碼行數:8,代碼來源:CNetworkPlayer.cs

示例2: GetConnectionList

	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;
	}
開發者ID:nulhax,項目名稱:VOID,代碼行數:12,代碼來源:RakPeerInterface.cs

示例3: GetConnectionListForRemoteSystem

    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;
    }
開發者ID:nulhax,項目名稱:VOID,代碼行數:24,代碼來源:ConnectionGraph2.cs

示例4: FormatLineHelper

 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 = RakNetPINVOKE.PacketLogger_FormatLineHelper__SWIG_1(swigCPtr, into, dir, type, packet, frame, idToPrint, bitLen, time, SystemAddress.getCPtr(local), SystemAddress.getCPtr(remote), splitPacketId, splitPacketIndex, splitPacketCount, orderingIndex);
     if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:sureandrew,項目名稱:RakNet,代碼行數:6,代碼來源:PacketLogger.cs

示例5: DownloadFromSubdirectory

 public ushort DownloadFromSubdirectory(FileList localFiles, string subdir, string outputSubdir, bool prependAppDirToOutputSubdir, SystemAddress host, FileListTransferCBInterface onFileCallback, PacketPriority _priority, char _orderingChannel, FileListProgress cb) {
   ushort ret = RakNetPINVOKE.DirectoryDeltaTransfer_DownloadFromSubdirectory__SWIG_1(swigCPtr, FileList.getCPtr(localFiles), subdir, outputSubdir, prependAppDirToOutputSubdir, SystemAddress.getCPtr(host), FileListTransferCBInterface.getCPtr(onFileCallback), (int)_priority, _orderingChannel, FileListProgress.getCPtr(cb));
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
開發者ID:ThiagoGarciaAlves,項目名稱:ClashOfClans,代碼行數:5,代碼來源:DirectoryDeltaTransfer.cs

示例6: Replace

 public void Replace(SystemAddress input, SystemAddress filler, uint position, string file, uint line) {
   RakNetPINVOKE.RakNetListSystemAddress_Replace__SWIG_0(swigCPtr, SystemAddress.getCPtr(input), SystemAddress.getCPtr(filler), position, file, line);
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:songotony,項目名稱:RType-Client,代碼行數:4,代碼來源:RakNetListSystemAddress.cs

示例7: Pop

 public SystemAddress Pop() {
   SystemAddress ret = new SystemAddress(RakNetPINVOKE.RakNetListSystemAddress_Pop(swigCPtr), false);
   return ret;
 }
開發者ID:songotony,項目名稱:RType-Client,代碼行數:4,代碼來源:RakNetListSystemAddress.cs

示例8: GetIndexOf

 public uint GetIndexOf(SystemAddress input) {
   uint ret = RakNetPINVOKE.RakNetListSystemAddress_GetIndexOf(swigCPtr, SystemAddress.getCPtr(input));
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
開發者ID:songotony,項目名稱:RType-Client,代碼行數:5,代碼來源:RakNetListSystemAddress.cs

示例9: SetInternalID

 public virtual void SetInternalID(SystemAddress systemAddress) {
   RakNetPINVOKE.RakPeerInterface_SetInternalID__SWIG_1(swigCPtr, SystemAddress.getCPtr(systemAddress));
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:4,代碼來源:RakPeerInterface.cs

示例10: GetInternalID

 public virtual SystemAddress GetInternalID() {
   SystemAddress ret = new SystemAddress(RakNetPINVOKE.RakPeerInterface_GetInternalID__SWIG_2(swigCPtr), true);
   return ret;
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:4,代碼來源:RakPeerInterface.cs

示例11: Ping

 public virtual void Ping(SystemAddress target) {
   RakNetPINVOKE.RakPeerInterface_Ping__SWIG_0(swigCPtr, SystemAddress.getCPtr(target));
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:4,代碼來源:RakPeerInterface.cs

示例12: GetSystemAddressFromIndex

 public virtual SystemAddress GetSystemAddressFromIndex(uint index) {
   SystemAddress ret = new SystemAddress(RakNetPINVOKE.RakPeerInterface_GetSystemAddressFromIndex(swigCPtr, index), true);
   return ret;
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:4,代碼來源:RakPeerInterface.cs

示例13: GetIndexFromSystemAddress

 public virtual int GetIndexFromSystemAddress(SystemAddress systemAddress) {
   int ret = RakNetPINVOKE.RakPeerInterface_GetIndexFromSystemAddress(swigCPtr, SystemAddress.getCPtr(systemAddress));
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:5,代碼來源:RakPeerInterface.cs

示例14: CancelConnectionAttempt

 public virtual void CancelConnectionAttempt(SystemAddress target) {
   RakNetPINVOKE.RakPeerInterface_CancelConnectionAttempt(swigCPtr, SystemAddress.getCPtr(target));
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:4,代碼來源:RakPeerInterface.cs

示例15: GetMTUSize

 public virtual int GetMTUSize(SystemAddress target) {
   int ret = RakNetPINVOKE.RakPeerInterface_GetMTUSize(swigCPtr, SystemAddress.getCPtr(target));
   if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
開發者ID:nulhax,項目名稱:VOID,代碼行數:5,代碼來源:RakPeerInterface.cs


注:本文中的RakNet.SystemAddress類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。