本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例7: Pop
public SystemAddress Pop() {
SystemAddress ret = new SystemAddress(RakNetPINVOKE.RakNetListSystemAddress_Pop(swigCPtr), false);
return ret;
}
示例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;
}
示例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();
}
示例10: GetInternalID
public virtual SystemAddress GetInternalID() {
SystemAddress ret = new SystemAddress(RakNetPINVOKE.RakPeerInterface_GetInternalID__SWIG_2(swigCPtr), true);
return ret;
}
示例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();
}
示例12: GetSystemAddressFromIndex
public virtual SystemAddress GetSystemAddressFromIndex(uint index) {
SystemAddress ret = new SystemAddress(RakNetPINVOKE.RakPeerInterface_GetSystemAddressFromIndex(swigCPtr, index), true);
return ret;
}
示例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;
}
示例14: CancelConnectionAttempt
public virtual void CancelConnectionAttempt(SystemAddress target) {
RakNetPINVOKE.RakPeerInterface_CancelConnectionAttempt(swigCPtr, SystemAddress.getCPtr(target));
if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
}
示例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;
}