├── .gitmodules ├── README.md ├── RakNetDotNet ├── RakNetDotNet.sln ├── RakNetDotNet.v11.suo └── RakNetDotNet │ ├── Properties │ └── AssemblyInfo.cs │ ├── RakNet │ ├── AddressOrGUID.cs │ ├── BitStream.cs │ ├── ByteQueue.cs │ ├── Cell.cs │ ├── ColumnDescriptor.cs │ ├── CommandParserInterface.cs │ ├── ConnectionAttemptResult.cs │ ├── ConnectionGraph2.cs │ ├── ConnectionState.cs │ ├── DefaultMessageIDTypes.cs │ ├── DirectoryDeltaTransfer.cs │ ├── DownloadCompleteStruct.cs │ ├── FLP_Printf.cs │ ├── FileList.cs │ ├── FileListNode.cs │ ├── FileListNodeContext.cs │ ├── FileListProgress.cs │ ├── FileListTransfer.cs │ ├── FileListTransferCBInterface.cs │ ├── FileProgressStruct.cs │ ├── FilterQuery.cs │ ├── FullyConnectedMesh2.cs │ ├── IncrementalReadInterface.cs │ ├── JoinTeamType.cs │ ├── LogCommandParser.cs │ ├── MessageFilter.cs │ ├── MultilistType.cs │ ├── NatPunchthroughClient.cs │ ├── NatPunchthroughDebugInterface.cs │ ├── NatPunchthroughDebugInterface_PacketLogger.cs │ ├── NatPunchthroughDebugInterface_Printf.cs │ ├── NatPunchthroughServer.cs │ ├── NatPunchthroughServerDebugInterface.cs │ ├── NatPunchthroughServerDebugInterface_PacketLogger.cs │ ├── NatPunchthroughServerDebugInterface_Printf.cs │ ├── NatTypeDetectionClient.cs │ ├── NatTypeDetectionServer.cs │ ├── NetworkIDManager.cs │ ├── NetworkIDObject.cs │ ├── OnFileStruct.cs │ ├── OutOfBandIdentifiers.cs │ ├── Packet.cs │ ├── PacketConsoleLogger.cs │ ├── PacketFileLogger.cs │ ├── PacketLogger.cs │ ├── PacketPriority.cs │ ├── PacketReliability.cs │ ├── PluginInterface2.cs │ ├── PluginReceiveResult.cs │ ├── PublicKey.cs │ ├── PublicKeyMode.cs │ ├── PunchthroughConfiguration.cs │ ├── RNSPerSecondMetrics.cs │ ├── RakNet.cs │ ├── RakNetBPlusTreeRow.cs │ ├── RakNetGUID.cs │ ├── RakNetListCell.cs │ ├── RakNetListCellPointer.cs │ ├── RakNetListColumnDescriptor.cs │ ├── RakNetListFileListNode.cs │ ├── RakNetListFilterQuery.cs │ ├── RakNetListRakNetGUID.cs │ ├── RakNetListRakString.cs │ ├── RakNetListSortQuery.cs │ ├── RakNetListSystemAddress.cs │ ├── RakNetListTableRow.cs │ ├── RakNetListUnsignedInt.cs │ ├── RakNetListUnsignedShort.cs │ ├── RakNetPINVOKE.cs │ ├── RakNetPageRow.cs │ ├── RakNetStatistics.cs │ ├── RakPeer.cs │ ├── RakPeerInterface.cs │ ├── RakString.cs │ ├── RakWString.cs │ ├── ReadyEvent.cs │ ├── ReadyEventSystemStatus.cs │ ├── RemoteSystemIndex.cs │ ├── Router2.cs │ ├── Router2DebugInterface.cs │ ├── Row.cs │ ├── SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t.cs │ ├── SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t.cs │ ├── SWIGTYPE_p_DataStructures__ListT_RakNet__TM_TeamMember_p_t.cs │ ├── SWIGTYPE_p_DataStructures__ListT_RakNet__TM_Team_p_t.cs │ ├── SWIGTYPE_p_FILE.cs │ ├── SWIGTYPE_p_RNS2RecvStruct.cs │ ├── SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing.cs │ ├── SWIGTYPE_p_RakNet__ReadyEvent__RemoteSystem.cs │ ├── SWIGTYPE_p_RakNet__TCPInterface.cs │ ├── SWIGTYPE_p_RakNet__TM_World__JoinRequestHelper.cs │ ├── SWIGTYPE_p_bool.cs │ ├── SWIGTYPE_p_double.cs │ ├── SWIGTYPE_p_p_RakNet__TM_Team.cs │ ├── SWIGTYPE_p_p_RakNet__TM_TeamMember.cs │ ├── SWIGTYPE_p_p_RakNet__TM_World.cs │ ├── SWIGTYPE_p_unsigned_char.cs │ ├── SWIGTYPE_p_unsigned_int.cs │ ├── SWIGTYPE_p_unsigned_long_long.cs │ ├── SWIGTYPE_p_unsigned_short.cs │ ├── SWIGTYPE_p_void.cs │ ├── SWIGTYPE_p_wchar_t.cs │ ├── SimpleMutex.cs │ ├── SocketDescriptor.cs │ ├── SortQuery.cs │ ├── StartupResult.cs │ ├── SystemAddress.cs │ ├── TMTopology.cs │ ├── TM_Team.cs │ ├── TM_TeamMember.cs │ ├── TM_World.cs │ ├── Table.cs │ ├── TeamManager.cs │ ├── TeamSelection.cs │ ├── ThreadsafePacketLogger.cs │ ├── TransportInterface.cs │ ├── UDPForwarder.cs │ ├── UDPForwarderResult.cs │ ├── UDPProxyClient.cs │ ├── UDPProxyClientResultHandler.cs │ ├── UDPProxyCoordinator.cs │ ├── UDPProxyServer.cs │ ├── UDPProxyServerResultHandler.cs │ ├── UnsignedIntPointer.cs │ ├── UnsignedShortPointer.cs │ └── uint24_t.cs │ ├── RakNetDotNet.csproj │ └── RakNetDotNet.shfbproj └── RakNetDotNetSamples ├── BigPacketTest ├── App.config ├── BigPacketTest.csproj ├── Program.cs ├── Properties │ └── AssemblyInfo.cs └── RakNet.dll ├── ChatExampleClient ├── App.config ├── ChatExampleClient.csproj ├── Program.cs └── Properties │ └── AssemblyInfo.cs ├── ChatExampleServer ├── App.config ├── ChatExampleServer.csproj ├── Program.cs └── Properties │ └── AssemblyInfo.cs ├── Dlls ├── RakNetDotNet.dll ├── x64 │ └── RakNet.dll └── x86 │ └── RakNet.dll ├── RakNetDotNetSamples.sln ├── RakNetDotNetSamples.v11.suo └── Sample ├── App.config ├── Program.cs ├── Properties └── AssemblyInfo.cs └── Sample.csproj /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "RakNet"] 2 | path = RakNet 3 | url = https://github.com/Siroro/RakNet 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # RakNetDotNet 2 | A compiled .NET library of RakNet available here: https://github.com/OculusVR/RakNet and some samples showing its usage. 3 | 4 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RakNetDotNet", "RakNetDotNet\RakNetDotNet.csproj", "{7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Debug|x64 = Debug|x64 10 | Release|Any CPU = Release|Any CPU 11 | Release|x64 = Release|x64 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}.Debug|x64.ActiveCfg = Debug|x64 17 | {7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}.Debug|x64.Build.0 = Debug|x64 18 | {7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}.Release|x64.ActiveCfg = Release|Any CPU 21 | {7C9A7B44-0B7A-4B04-A08E-0AB22C4E7CBF}.Release|x64.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet.v11.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Siroro/RakNet-C-Sharp-binding-project/f7ffdcb771f5ed086691f03fc331049ec0ce9737/RakNetDotNet/RakNetDotNet.v11.suo -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("RakNetDotNet")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("RakNetDotNet")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("a5c1e654-3934-448c-ae55-6646797cc596")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/ByteQueue.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class ByteQueue : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal ByteQueue(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(ByteQueue obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~ByteQueue() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_ByteQueue(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public byte[] PeekContiguousBytes(out uint outLength) 45 | { 46 | return PeekContiguousBytesHelper(out outLength); 47 | } 48 | 49 | public ByteQueue() : this(RakNetPINVOKE.new_ByteQueue(), true) { 50 | } 51 | 52 | public uint GetBytesWritten() { 53 | uint ret = RakNetPINVOKE.ByteQueue_GetBytesWritten(swigCPtr); 54 | return ret; 55 | } 56 | 57 | public void IncrementReadOffset(uint length) { 58 | RakNetPINVOKE.ByteQueue_IncrementReadOffset(swigCPtr, length); 59 | } 60 | 61 | public void DecrementReadOffset(uint length) { 62 | RakNetPINVOKE.ByteQueue_DecrementReadOffset(swigCPtr, length); 63 | } 64 | 65 | public void Clear(string file, uint line) { 66 | RakNetPINVOKE.ByteQueue_Clear(swigCPtr, file, line); 67 | } 68 | 69 | public void Print() { 70 | RakNetPINVOKE.ByteQueue_Print(swigCPtr); 71 | } 72 | 73 | public void WriteBytes(byte[] inByteArray, uint length, string file, uint line) { 74 | RakNetPINVOKE.ByteQueue_WriteBytes(swigCPtr, inByteArray, length, file, line); 75 | } 76 | 77 | public bool ReadBytes(byte[] inOutByteArray, uint maxLengthToRead, bool peek) { 78 | bool ret = RakNetPINVOKE.ByteQueue_ReadBytes(swigCPtr, inOutByteArray, maxLengthToRead, peek); 79 | return ret; 80 | } 81 | 82 | private byte[] PeekContiguousBytesHelper(out uint outLength) 83 | { 84 | IntPtr cPtr = RakNetPINVOKE.ByteQueue_PeekContiguousBytesHelper(swigCPtr, out outLength); 85 | int len = (int)outLength; 86 | if (len <= 0) 87 | { 88 | return null; 89 | } 90 | byte[] returnBytes = new byte[len]; 91 | Marshal.Copy(cPtr, returnBytes, 0, len); 92 | return returnBytes; 93 | } 94 | 95 | 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/Cell.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class Cell : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal Cell(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(Cell obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~Cell() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_Cell(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public void Get(out string output) 45 | { 46 | string temp=new String('c', (int) this.i); 47 | output=GetHelper(temp); 48 | } 49 | 50 | public Cell() : this(RakNetPINVOKE.new_Cell__SWIG_0(), true) { 51 | } 52 | 53 | public void Clear() { 54 | RakNetPINVOKE.Cell_Clear(swigCPtr); 55 | } 56 | 57 | public void Set(int input) { 58 | RakNetPINVOKE.Cell_Set__SWIG_0(swigCPtr, input); 59 | } 60 | 61 | public void Set(uint input) { 62 | RakNetPINVOKE.Cell_Set__SWIG_1(swigCPtr, input); 63 | } 64 | 65 | public void Set(double input) { 66 | RakNetPINVOKE.Cell_Set__SWIG_2(swigCPtr, input); 67 | } 68 | 69 | public void Set(string input) { 70 | RakNetPINVOKE.Cell_Set__SWIG_3(swigCPtr, input); 71 | } 72 | 73 | public void Get(out int output) { 74 | RakNetPINVOKE.Cell_Get__SWIG_0(swigCPtr, out output); 75 | } 76 | 77 | public void Get(out double output) { 78 | RakNetPINVOKE.Cell_Get__SWIG_1(swigCPtr, out output); 79 | } 80 | 81 | public RakString ToString(Table.ColumnType columnType) { 82 | RakString ret = new RakString(RakNetPINVOKE.Cell_ToString(swigCPtr, (int)columnType), true); 83 | return ret; 84 | } 85 | 86 | public Cell CopyData(Cell input) { 87 | Cell ret = new Cell(RakNetPINVOKE.Cell_CopyData(swigCPtr, Cell.getCPtr(input)), false); 88 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 89 | return ret; 90 | } 91 | 92 | public Cell(Cell input) : this(RakNetPINVOKE.new_Cell__SWIG_1(Cell.getCPtr(input)), true) { 93 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 94 | } 95 | 96 | public Table.ColumnType EstimateColumnType() { 97 | Table.ColumnType ret = (Table.ColumnType)RakNetPINVOKE.Cell_EstimateColumnType(swigCPtr); 98 | return ret; 99 | } 100 | 101 | public bool isEmpty { 102 | set { 103 | RakNetPINVOKE.Cell_isEmpty_set(swigCPtr, value); 104 | } 105 | get { 106 | bool ret = RakNetPINVOKE.Cell_isEmpty_get(swigCPtr); 107 | return ret; 108 | } 109 | } 110 | 111 | public double i { 112 | set { 113 | RakNetPINVOKE.Cell_i_set(swigCPtr, value); 114 | } 115 | get { 116 | double ret = RakNetPINVOKE.Cell_i_get(swigCPtr); 117 | return ret; 118 | } 119 | } 120 | 121 | public void Set(byte[] inByteArray, int inputLength) { 122 | RakNetPINVOKE.Cell_Set__SWIG_4(swigCPtr, inByteArray, inputLength); 123 | } 124 | 125 | public void Get(byte[] inOutByteArray, out int outputLength) { 126 | RakNetPINVOKE.Cell_Get__SWIG_2(swigCPtr, inOutByteArray, out outputLength); 127 | } 128 | 129 | private string GetHelper(string output) { 130 | string ret = RakNetPINVOKE.Cell_GetHelper(swigCPtr, output); 131 | return ret; 132 | } 133 | 134 | } 135 | 136 | } 137 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/ColumnDescriptor.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class ColumnDescriptor : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal ColumnDescriptor(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(ColumnDescriptor obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~ColumnDescriptor() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_ColumnDescriptor(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public ColumnDescriptor() : this(RakNetPINVOKE.new_ColumnDescriptor__SWIG_0(), true) { 45 | } 46 | 47 | public ColumnDescriptor(string cn, Table.ColumnType ct) : this(RakNetPINVOKE.new_ColumnDescriptor__SWIG_1(cn, (int)ct), true) { 48 | } 49 | 50 | public string columnName { 51 | set { 52 | RakNetPINVOKE.ColumnDescriptor_columnName_set(swigCPtr, value); 53 | } 54 | get { 55 | string ret = RakNetPINVOKE.ColumnDescriptor_columnName_get(swigCPtr); 56 | return ret; 57 | } 58 | } 59 | 60 | public Table.ColumnType columnType { 61 | set { 62 | RakNetPINVOKE.ColumnDescriptor_columnType_set(swigCPtr, (int)value); 63 | } 64 | get { 65 | Table.ColumnType ret = (Table.ColumnType)RakNetPINVOKE.ColumnDescriptor_columnType_get(swigCPtr); 66 | return ret; 67 | } 68 | } 69 | 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/ConnectionAttemptResult.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum ConnectionAttemptResult { 12 | CONNECTION_ATTEMPT_STARTED, 13 | INVALID_PARAMETER, 14 | CANNOT_RESOLVE_DOMAIN_NAME, 15 | ALREADY_CONNECTED_TO_ENDPOINT, 16 | CONNECTION_ATTEMPT_ALREADY_IN_PROGRESS, 17 | SECURITY_INITIALIZATION_FAILED 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/ConnectionState.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum ConnectionState { 12 | IS_PENDING, 13 | IS_CONNECTING, 14 | IS_CONNECTED, 15 | IS_DISCONNECTING, 16 | IS_SILENTLY_DISCONNECTING, 17 | IS_DISCONNECTED, 18 | IS_NOT_CONNECTED 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/DefaultMessageIDTypes.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum DefaultMessageIDTypes { 12 | ID_CONNECTED_PING, 13 | ID_UNCONNECTED_PING, 14 | ID_UNCONNECTED_PING_OPEN_CONNECTIONS, 15 | ID_CONNECTED_PONG, 16 | ID_DETECT_LOST_CONNECTIONS, 17 | ID_OPEN_CONNECTION_REQUEST_1, 18 | ID_OPEN_CONNECTION_REPLY_1, 19 | ID_OPEN_CONNECTION_REQUEST_2, 20 | ID_OPEN_CONNECTION_REPLY_2, 21 | ID_CONNECTION_REQUEST, 22 | ID_REMOTE_SYSTEM_REQUIRES_PUBLIC_KEY, 23 | ID_OUR_SYSTEM_REQUIRES_SECURITY, 24 | ID_PUBLIC_KEY_MISMATCH, 25 | ID_OUT_OF_BAND_INTERNAL, 26 | ID_SND_RECEIPT_ACKED, 27 | ID_SND_RECEIPT_LOSS, 28 | ID_CONNECTION_REQUEST_ACCEPTED, 29 | ID_CONNECTION_ATTEMPT_FAILED, 30 | ID_ALREADY_CONNECTED, 31 | ID_NEW_INCOMING_CONNECTION, 32 | ID_NO_FREE_INCOMING_CONNECTIONS, 33 | ID_DISCONNECTION_NOTIFICATION, 34 | ID_CONNECTION_LOST, 35 | ID_CONNECTION_BANNED, 36 | ID_INVALID_PASSWORD, 37 | ID_INCOMPATIBLE_PROTOCOL_VERSION, 38 | ID_IP_RECENTLY_CONNECTED, 39 | ID_TIMESTAMP, 40 | ID_UNCONNECTED_PONG, 41 | ID_ADVERTISE_SYSTEM, 42 | ID_DOWNLOAD_PROGRESS, 43 | ID_REMOTE_DISCONNECTION_NOTIFICATION, 44 | ID_REMOTE_CONNECTION_LOST, 45 | ID_REMOTE_NEW_INCOMING_CONNECTION, 46 | ID_FILE_LIST_TRANSFER_HEADER, 47 | ID_FILE_LIST_TRANSFER_FILE, 48 | ID_FILE_LIST_REFERENCE_PUSH_ACK, 49 | ID_DDT_DOWNLOAD_REQUEST, 50 | ID_TRANSPORT_STRING, 51 | ID_REPLICA_MANAGER_CONSTRUCTION, 52 | ID_REPLICA_MANAGER_SCOPE_CHANGE, 53 | ID_REPLICA_MANAGER_SERIALIZE, 54 | ID_REPLICA_MANAGER_DOWNLOAD_STARTED, 55 | ID_REPLICA_MANAGER_DOWNLOAD_COMPLETE, 56 | ID_RAKVOICE_OPEN_CHANNEL_REQUEST, 57 | ID_RAKVOICE_OPEN_CHANNEL_REPLY, 58 | ID_RAKVOICE_CLOSE_CHANNEL, 59 | ID_RAKVOICE_DATA, 60 | ID_AUTOPATCHER_GET_CHANGELIST_SINCE_DATE, 61 | ID_AUTOPATCHER_CREATION_LIST, 62 | ID_AUTOPATCHER_DELETION_LIST, 63 | ID_AUTOPATCHER_GET_PATCH, 64 | ID_AUTOPATCHER_PATCH_LIST, 65 | ID_AUTOPATCHER_REPOSITORY_FATAL_ERROR, 66 | ID_AUTOPATCHER_CANNOT_DOWNLOAD_ORIGINAL_UNMODIFIED_FILES, 67 | ID_AUTOPATCHER_FINISHED_INTERNAL, 68 | ID_AUTOPATCHER_FINISHED, 69 | ID_AUTOPATCHER_RESTART_APPLICATION, 70 | ID_NAT_PUNCHTHROUGH_REQUEST, 71 | ID_NAT_CONNECT_AT_TIME, 72 | ID_NAT_GET_MOST_RECENT_PORT, 73 | ID_NAT_CLIENT_READY, 74 | ID_NAT_TARGET_NOT_CONNECTED, 75 | ID_NAT_TARGET_UNRESPONSIVE, 76 | ID_NAT_CONNECTION_TO_TARGET_LOST, 77 | ID_NAT_ALREADY_IN_PROGRESS, 78 | ID_NAT_PUNCHTHROUGH_FAILED, 79 | ID_NAT_PUNCHTHROUGH_SUCCEEDED, 80 | ID_READY_EVENT_SET, 81 | ID_READY_EVENT_UNSET, 82 | ID_READY_EVENT_ALL_SET, 83 | ID_READY_EVENT_QUERY, 84 | ID_LOBBY_GENERAL, 85 | ID_RPC_REMOTE_ERROR, 86 | ID_RPC_PLUGIN, 87 | ID_FILE_LIST_REFERENCE_PUSH, 88 | ID_READY_EVENT_FORCE_ALL_SET, 89 | ID_ROOMS_EXECUTE_FUNC, 90 | ID_ROOMS_LOGON_STATUS, 91 | ID_ROOMS_HANDLE_CHANGE, 92 | ID_LOBBY2_SEND_MESSAGE, 93 | ID_LOBBY2_SERVER_ERROR, 94 | ID_FCM2_NEW_HOST, 95 | ID_FCM2_REQUEST_FCMGUID, 96 | ID_FCM2_RESPOND_CONNECTION_COUNT, 97 | ID_FCM2_INFORM_FCMGUID, 98 | ID_FCM2_UPDATE_MIN_TOTAL_CONNECTION_COUNT, 99 | ID_FCM2_VERIFIED_JOIN_START, 100 | ID_FCM2_VERIFIED_JOIN_CAPABLE, 101 | ID_FCM2_VERIFIED_JOIN_FAILED, 102 | ID_FCM2_VERIFIED_JOIN_ACCEPTED, 103 | ID_FCM2_VERIFIED_JOIN_REJECTED, 104 | ID_UDP_PROXY_GENERAL, 105 | ID_SQLite3_EXEC, 106 | ID_SQLite3_UNKNOWN_DB, 107 | ID_SQLLITE_LOGGER, 108 | ID_NAT_TYPE_DETECTION_REQUEST, 109 | ID_NAT_TYPE_DETECTION_RESULT, 110 | ID_ROUTER_2_INTERNAL, 111 | ID_ROUTER_2_FORWARDING_NO_PATH, 112 | ID_ROUTER_2_FORWARDING_ESTABLISHED, 113 | ID_ROUTER_2_REROUTED, 114 | ID_TEAM_BALANCER_INTERNAL, 115 | ID_TEAM_BALANCER_REQUESTED_TEAM_FULL, 116 | ID_TEAM_BALANCER_REQUESTED_TEAM_LOCKED, 117 | ID_TEAM_BALANCER_TEAM_REQUESTED_CANCELLED, 118 | ID_TEAM_BALANCER_TEAM_ASSIGNED, 119 | ID_LIGHTSPEED_INTEGRATION, 120 | ID_XBOX_LOBBY, 121 | ID_TWO_WAY_AUTHENTICATION_INCOMING_CHALLENGE_SUCCESS, 122 | ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_SUCCESS, 123 | ID_TWO_WAY_AUTHENTICATION_INCOMING_CHALLENGE_FAILURE, 124 | ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_FAILURE, 125 | ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_TIMEOUT, 126 | ID_TWO_WAY_AUTHENTICATION_NEGOTIATION, 127 | ID_CLOUD_POST_REQUEST, 128 | ID_CLOUD_RELEASE_REQUEST, 129 | ID_CLOUD_GET_REQUEST, 130 | ID_CLOUD_GET_RESPONSE, 131 | ID_CLOUD_UNSUBSCRIBE_REQUEST, 132 | ID_CLOUD_SERVER_TO_SERVER_COMMAND, 133 | ID_CLOUD_SUBSCRIPTION_NOTIFICATION, 134 | ID_LIB_VOICE, 135 | ID_RELAY_PLUGIN, 136 | ID_NAT_REQUEST_BOUND_ADDRESSES, 137 | ID_NAT_RESPOND_BOUND_ADDRESSES, 138 | ID_FCM2_UPDATE_USER_CONTEXT, 139 | ID_RESERVED_3, 140 | ID_RESERVED_4, 141 | ID_RESERVED_5, 142 | ID_RESERVED_6, 143 | ID_RESERVED_7, 144 | ID_RESERVED_8, 145 | ID_RESERVED_9, 146 | ID_USER_PACKET_ENUM 147 | } 148 | 149 | } 150 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/DirectoryDeltaTransfer.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class DirectoryDeltaTransfer : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal DirectoryDeltaTransfer(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.DirectoryDeltaTransfer_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(DirectoryDeltaTransfer obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~DirectoryDeltaTransfer() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_DirectoryDeltaTransfer(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static DirectoryDeltaTransfer GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.DirectoryDeltaTransfer_GetInstance(); 45 | DirectoryDeltaTransfer ret = (cPtr == IntPtr.Zero) ? null : new DirectoryDeltaTransfer(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(DirectoryDeltaTransfer i) { 50 | RakNetPINVOKE.DirectoryDeltaTransfer_DestroyInstance(DirectoryDeltaTransfer.getCPtr(i)); 51 | } 52 | 53 | public DirectoryDeltaTransfer() : this(RakNetPINVOKE.new_DirectoryDeltaTransfer(), true) { 54 | } 55 | 56 | public void SetFileListTransferPlugin(FileListTransfer flt) { 57 | RakNetPINVOKE.DirectoryDeltaTransfer_SetFileListTransferPlugin(swigCPtr, FileListTransfer.getCPtr(flt)); 58 | } 59 | 60 | public void SetApplicationDirectory(string pathToApplication) { 61 | RakNetPINVOKE.DirectoryDeltaTransfer_SetApplicationDirectory(swigCPtr, pathToApplication); 62 | } 63 | 64 | public void SetUploadSendParameters(PacketPriority _priority, char _orderingChannel) { 65 | RakNetPINVOKE.DirectoryDeltaTransfer_SetUploadSendParameters(swigCPtr, (int)_priority, _orderingChannel); 66 | } 67 | 68 | public void AddUploadsFromSubdirectory(string subdir) { 69 | RakNetPINVOKE.DirectoryDeltaTransfer_AddUploadsFromSubdirectory(swigCPtr, subdir); 70 | } 71 | 72 | public ushort DownloadFromSubdirectory(string subdir, string outputSubdir, bool prependAppDirToOutputSubdir, SystemAddress host, FileListTransferCBInterface onFileCallback, PacketPriority _priority, char _orderingChannel, FileListProgress cb) { 73 | ushort ret = RakNetPINVOKE.DirectoryDeltaTransfer_DownloadFromSubdirectory__SWIG_0(swigCPtr, subdir, outputSubdir, prependAppDirToOutputSubdir, SystemAddress.getCPtr(host), FileListTransferCBInterface.getCPtr(onFileCallback), (int)_priority, _orderingChannel, FileListProgress.getCPtr(cb)); 74 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 75 | return ret; 76 | } 77 | 78 | public ushort DownloadFromSubdirectory(FileList localFiles, string subdir, string outputSubdir, bool prependAppDirToOutputSubdir, SystemAddress host, FileListTransferCBInterface onFileCallback, PacketPriority _priority, char _orderingChannel, FileListProgress cb) { 79 | 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)); 80 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 81 | return ret; 82 | } 83 | 84 | public void GenerateHashes(FileList localFiles, string outputSubdir, bool prependAppDirToOutputSubdir) { 85 | RakNetPINVOKE.DirectoryDeltaTransfer_GenerateHashes(swigCPtr, FileList.getCPtr(localFiles), outputSubdir, prependAppDirToOutputSubdir); 86 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 87 | } 88 | 89 | public void ClearUploads() { 90 | RakNetPINVOKE.DirectoryDeltaTransfer_ClearUploads(swigCPtr); 91 | } 92 | 93 | public uint GetNumberOfFilesForUpload() { 94 | uint ret = RakNetPINVOKE.DirectoryDeltaTransfer_GetNumberOfFilesForUpload(swigCPtr); 95 | return ret; 96 | } 97 | 98 | public void SetDownloadRequestIncrementalReadInterface(IncrementalReadInterface _incrementalReadInterface, uint _chunkSize) { 99 | RakNetPINVOKE.DirectoryDeltaTransfer_SetDownloadRequestIncrementalReadInterface(swigCPtr, IncrementalReadInterface.getCPtr(_incrementalReadInterface), _chunkSize); 100 | } 101 | 102 | } 103 | 104 | } 105 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/DownloadCompleteStruct.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class DownloadCompleteStruct : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal DownloadCompleteStruct(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(DownloadCompleteStruct obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~DownloadCompleteStruct() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_DownloadCompleteStruct(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public ushort setID { 45 | set { 46 | RakNetPINVOKE.DownloadCompleteStruct_setID_set(swigCPtr, value); 47 | } 48 | get { 49 | ushort ret = RakNetPINVOKE.DownloadCompleteStruct_setID_get(swigCPtr); 50 | return ret; 51 | } 52 | } 53 | 54 | public uint numberOfFilesInThisSet { 55 | set { 56 | RakNetPINVOKE.DownloadCompleteStruct_numberOfFilesInThisSet_set(swigCPtr, value); 57 | } 58 | get { 59 | uint ret = RakNetPINVOKE.DownloadCompleteStruct_numberOfFilesInThisSet_get(swigCPtr); 60 | return ret; 61 | } 62 | } 63 | 64 | public uint byteLengthOfThisSet { 65 | set { 66 | RakNetPINVOKE.DownloadCompleteStruct_byteLengthOfThisSet_set(swigCPtr, value); 67 | } 68 | get { 69 | uint ret = RakNetPINVOKE.DownloadCompleteStruct_byteLengthOfThisSet_get(swigCPtr); 70 | return ret; 71 | } 72 | } 73 | 74 | public SystemAddress senderSystemAddress { 75 | set { 76 | RakNetPINVOKE.DownloadCompleteStruct_senderSystemAddress_set(swigCPtr, SystemAddress.getCPtr(value)); 77 | } 78 | get { 79 | IntPtr cPtr = RakNetPINVOKE.DownloadCompleteStruct_senderSystemAddress_get(swigCPtr); 80 | SystemAddress ret = (cPtr == IntPtr.Zero) ? null : new SystemAddress(cPtr, false); 81 | return ret; 82 | } 83 | } 84 | 85 | public RakNetGUID senderGuid { 86 | set { 87 | RakNetPINVOKE.DownloadCompleteStruct_senderGuid_set(swigCPtr, RakNetGUID.getCPtr(value)); 88 | } 89 | get { 90 | IntPtr cPtr = RakNetPINVOKE.DownloadCompleteStruct_senderGuid_get(swigCPtr); 91 | RakNetGUID ret = (cPtr == IntPtr.Zero) ? null : new RakNetGUID(cPtr, false); 92 | return ret; 93 | } 94 | } 95 | 96 | public DownloadCompleteStruct() : this(RakNetPINVOKE.new_DownloadCompleteStruct(), true) { 97 | } 98 | 99 | } 100 | 101 | } 102 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/FLP_Printf.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class FLP_Printf : FileListProgress { 15 | private HandleRef swigCPtr; 16 | 17 | internal FLP_Printf(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.FLP_Printf_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(FLP_Printf obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~FLP_Printf() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_FLP_Printf(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public new static FLP_Printf GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.FLP_Printf_GetInstance(); 45 | FLP_Printf ret = (cPtr == IntPtr.Zero) ? null : new FLP_Printf(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(FLP_Printf i) { 50 | RakNetPINVOKE.FLP_Printf_DestroyInstance(FLP_Printf.getCPtr(i)); 51 | } 52 | 53 | public FLP_Printf() : this(RakNetPINVOKE.new_FLP_Printf(), true) { 54 | } 55 | 56 | public override void OnAddFilesFromDirectoryStarted(FileList fileList, string dir) { 57 | RakNetPINVOKE.FLP_Printf_OnAddFilesFromDirectoryStarted(swigCPtr, FileList.getCPtr(fileList), dir); 58 | } 59 | 60 | public override void OnDirectory(FileList fileList, string dir, uint directoriesRemaining) { 61 | RakNetPINVOKE.FLP_Printf_OnDirectory(swigCPtr, FileList.getCPtr(fileList), dir, directoriesRemaining); 62 | } 63 | 64 | public override void OnFilePushesComplete(SystemAddress systemAddress, ushort setID) { 65 | RakNetPINVOKE.FLP_Printf_OnFilePushesComplete(swigCPtr, SystemAddress.getCPtr(systemAddress), setID); 66 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 67 | } 68 | 69 | public override void OnSendAborted(SystemAddress systemAddress) { 70 | RakNetPINVOKE.FLP_Printf_OnSendAborted(swigCPtr, SystemAddress.getCPtr(systemAddress)); 71 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 72 | } 73 | 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/FileListNode.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class FileListNode : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal FileListNode(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(FileListNode obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~FileListNode() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_FileListNode(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | private bool dataIsCached = false; 45 | private byte[] dataCache; 46 | 47 | public RakString filename { 48 | set { 49 | RakNetPINVOKE.FileListNode_filename_set(swigCPtr, RakString.getCPtr(value)); 50 | } 51 | get { 52 | IntPtr cPtr = RakNetPINVOKE.FileListNode_filename_get(swigCPtr); 53 | RakString ret = (cPtr == IntPtr.Zero) ? null : new RakString(cPtr, false); 54 | return ret; 55 | } 56 | } 57 | 58 | public RakString fullPathToFile { 59 | set { 60 | RakNetPINVOKE.FileListNode_fullPathToFile_set(swigCPtr, RakString.getCPtr(value)); 61 | } 62 | get { 63 | IntPtr cPtr = RakNetPINVOKE.FileListNode_fullPathToFile_get(swigCPtr); 64 | RakString ret = (cPtr == IntPtr.Zero) ? null : new RakString(cPtr, false); 65 | return ret; 66 | } 67 | } 68 | 69 | public byte[] data { 70 | set 71 | { 72 | dataCache=value; 73 | dataIsCached = true; 74 | SetData (value, value.Length); 75 | } 76 | 77 | get 78 | { 79 | byte[] returnArray; 80 | if (!dataIsCached) 81 | { 82 | IntPtr cPtr = RakNetPINVOKE.FileListNode_data_get (swigCPtr); 83 | int len = (int) dataLengthBytes; 84 | if (len<=0) 85 | { 86 | return null; 87 | } 88 | returnArray = new byte[len]; 89 | byte[] marshalArray = new byte[len]; 90 | Marshal.Copy(cPtr, marshalArray, 0, len); 91 | marshalArray.CopyTo(returnArray, 0); 92 | dataCache = returnArray; 93 | dataIsCached = true; 94 | } 95 | else 96 | { 97 | returnArray = dataCache; 98 | } 99 | return returnArray; 100 | } 101 | 102 | } 103 | 104 | public uint dataLengthBytes { 105 | set { 106 | RakNetPINVOKE.FileListNode_dataLengthBytes_set(swigCPtr, value); 107 | } 108 | get { 109 | uint ret = RakNetPINVOKE.FileListNode_dataLengthBytes_get(swigCPtr); 110 | return ret; 111 | } 112 | } 113 | 114 | public uint fileLengthBytes { 115 | set { 116 | RakNetPINVOKE.FileListNode_fileLengthBytes_set(swigCPtr, value); 117 | } 118 | get { 119 | uint ret = RakNetPINVOKE.FileListNode_fileLengthBytes_get(swigCPtr); 120 | return ret; 121 | } 122 | } 123 | 124 | public FileListNodeContext context { 125 | set { 126 | RakNetPINVOKE.FileListNode_context_set(swigCPtr, FileListNodeContext.getCPtr(value)); 127 | } 128 | get { 129 | IntPtr cPtr = RakNetPINVOKE.FileListNode_context_get(swigCPtr); 130 | FileListNodeContext ret = (cPtr == IntPtr.Zero) ? null : new FileListNodeContext(cPtr, false); 131 | return ret; 132 | } 133 | } 134 | 135 | public bool isAReference { 136 | set { 137 | RakNetPINVOKE.FileListNode_isAReference_set(swigCPtr, value); 138 | } 139 | get { 140 | bool ret = RakNetPINVOKE.FileListNode_isAReference_get(swigCPtr); 141 | return ret; 142 | } 143 | } 144 | 145 | public FileListNode() : this(RakNetPINVOKE.new_FileListNode(), true) { 146 | } 147 | 148 | public void SetData(byte[] inByteArray, int numBytes) { 149 | RakNetPINVOKE.FileListNode_SetData(swigCPtr, inByteArray, numBytes); 150 | } 151 | 152 | } 153 | 154 | } 155 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/FileListNodeContext.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class FileListNodeContext : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal FileListNodeContext(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(FileListNodeContext obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~FileListNodeContext() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_FileListNodeContext(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public FileListNodeContext() : this(RakNetPINVOKE.new_FileListNodeContext__SWIG_0(), true) { 45 | } 46 | 47 | public FileListNodeContext(byte o, uint f1, uint f2, uint f3) : this(RakNetPINVOKE.new_FileListNodeContext__SWIG_1(o, f1, f2, f3), true) { 48 | } 49 | 50 | public byte op { 51 | set { 52 | RakNetPINVOKE.FileListNodeContext_op_set(swigCPtr, value); 53 | } 54 | get { 55 | byte ret = RakNetPINVOKE.FileListNodeContext_op_get(swigCPtr); 56 | return ret; 57 | } 58 | } 59 | 60 | public uint flnc_extraData1 { 61 | set { 62 | RakNetPINVOKE.FileListNodeContext_flnc_extraData1_set(swigCPtr, value); 63 | } 64 | get { 65 | uint ret = RakNetPINVOKE.FileListNodeContext_flnc_extraData1_get(swigCPtr); 66 | return ret; 67 | } 68 | } 69 | 70 | public uint flnc_extraData2 { 71 | set { 72 | RakNetPINVOKE.FileListNodeContext_flnc_extraData2_set(swigCPtr, value); 73 | } 74 | get { 75 | uint ret = RakNetPINVOKE.FileListNodeContext_flnc_extraData2_get(swigCPtr); 76 | return ret; 77 | } 78 | } 79 | 80 | public uint flnc_extraData3 { 81 | set { 82 | RakNetPINVOKE.FileListNodeContext_flnc_extraData3_set(swigCPtr, value); 83 | } 84 | get { 85 | uint ret = RakNetPINVOKE.FileListNodeContext_flnc_extraData3_get(swigCPtr); 86 | return ret; 87 | } 88 | } 89 | 90 | public SWIGTYPE_p_void dataPtr { 91 | set { 92 | RakNetPINVOKE.FileListNodeContext_dataPtr_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); 93 | } 94 | get { 95 | IntPtr cPtr = RakNetPINVOKE.FileListNodeContext_dataPtr_get(swigCPtr); 96 | SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); 97 | return ret; 98 | } 99 | } 100 | 101 | public uint dataLength { 102 | set { 103 | RakNetPINVOKE.FileListNodeContext_dataLength_set(swigCPtr, value); 104 | } 105 | get { 106 | uint ret = RakNetPINVOKE.FileListNodeContext_dataLength_get(swigCPtr); 107 | return ret; 108 | } 109 | } 110 | 111 | } 112 | 113 | } 114 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/FileListProgress.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class FileListProgress : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal FileListProgress(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(FileListProgress obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~FileListProgress() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_FileListProgress(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public static FileListProgress GetInstance() { 45 | IntPtr cPtr = RakNetPINVOKE.FileListProgress_GetInstance(); 46 | FileListProgress ret = (cPtr == IntPtr.Zero) ? null : new FileListProgress(cPtr, false); 47 | return ret; 48 | } 49 | 50 | public static void DestroyInstance(FileListProgress i) { 51 | RakNetPINVOKE.FileListProgress_DestroyInstance(FileListProgress.getCPtr(i)); 52 | } 53 | 54 | public FileListProgress() : this(RakNetPINVOKE.new_FileListProgress(), true) { 55 | } 56 | 57 | public virtual void OnAddFilesFromDirectoryStarted(FileList fileList, string dir) { 58 | RakNetPINVOKE.FileListProgress_OnAddFilesFromDirectoryStarted(swigCPtr, FileList.getCPtr(fileList), dir); 59 | } 60 | 61 | public virtual void OnDirectory(FileList fileList, string dir, uint directoriesRemaining) { 62 | RakNetPINVOKE.FileListProgress_OnDirectory(swigCPtr, FileList.getCPtr(fileList), dir, directoriesRemaining); 63 | } 64 | 65 | public virtual void OnFile(FileList fileList, string dir, string fileName, uint fileSize) { 66 | RakNetPINVOKE.FileListProgress_OnFile(swigCPtr, FileList.getCPtr(fileList), dir, fileName, fileSize); 67 | } 68 | 69 | public virtual void OnFilePush(string fileName, uint fileLengthBytes, uint offset, uint bytesBeingSent, bool done, SystemAddress targetSystem, ushort setId) { 70 | RakNetPINVOKE.FileListProgress_OnFilePush(swigCPtr, fileName, fileLengthBytes, offset, bytesBeingSent, done, SystemAddress.getCPtr(targetSystem), setId); 71 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 72 | } 73 | 74 | public virtual void OnFilePushesComplete(SystemAddress systemAddress, ushort setId) { 75 | RakNetPINVOKE.FileListProgress_OnFilePushesComplete(swigCPtr, SystemAddress.getCPtr(systemAddress), setId); 76 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 77 | } 78 | 79 | public virtual void OnSendAborted(SystemAddress systemAddress) { 80 | RakNetPINVOKE.FileListProgress_OnSendAborted(swigCPtr, SystemAddress.getCPtr(systemAddress)); 81 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 82 | } 83 | 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/FilterQuery.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class FilterQuery : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal FilterQuery(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(FilterQuery obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~FilterQuery() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_FilterQuery(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public FilterQuery() : this(RakNetPINVOKE.new_FilterQuery__SWIG_0(), true) { 45 | } 46 | 47 | public FilterQuery(uint column, Cell cell, Table.FilterQueryType op) : this(RakNetPINVOKE.new_FilterQuery__SWIG_1(column, Cell.getCPtr(cell), (int)op), true) { 48 | } 49 | 50 | public string columnName { 51 | set { 52 | RakNetPINVOKE.FilterQuery_columnName_set(swigCPtr, value); 53 | } 54 | get { 55 | string ret = RakNetPINVOKE.FilterQuery_columnName_get(swigCPtr); 56 | return ret; 57 | } 58 | } 59 | 60 | public uint columnIndex { 61 | set { 62 | RakNetPINVOKE.FilterQuery_columnIndex_set(swigCPtr, value); 63 | } 64 | get { 65 | uint ret = RakNetPINVOKE.FilterQuery_columnIndex_get(swigCPtr); 66 | return ret; 67 | } 68 | } 69 | 70 | public Cell cellValue { 71 | set { 72 | RakNetPINVOKE.FilterQuery_cellValue_set(swigCPtr, Cell.getCPtr(value)); 73 | } 74 | get { 75 | IntPtr cPtr = RakNetPINVOKE.FilterQuery_cellValue_get(swigCPtr); 76 | Cell ret = (cPtr == IntPtr.Zero) ? null : new Cell(cPtr, false); 77 | return ret; 78 | } 79 | } 80 | 81 | public Table.FilterQueryType operation { 82 | set { 83 | RakNetPINVOKE.FilterQuery_operation_set(swigCPtr, (int)value); 84 | } 85 | get { 86 | Table.FilterQueryType ret = (Table.FilterQueryType)RakNetPINVOKE.FilterQuery_operation_get(swigCPtr); 87 | return ret; 88 | } 89 | } 90 | 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/IncrementalReadInterface.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class IncrementalReadInterface : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal IncrementalReadInterface(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(IncrementalReadInterface obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~IncrementalReadInterface() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_IncrementalReadInterface(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public IncrementalReadInterface() : this(RakNetPINVOKE.new_IncrementalReadInterface(), true) { 45 | } 46 | 47 | public uint GetFilePart(string filename, uint startReadBytes, uint numBytesToRead, byte[] inOutByteArray, FileListNodeContext context) { 48 | uint ret = RakNetPINVOKE.IncrementalReadInterface_GetFilePart(swigCPtr, filename, startReadBytes, numBytesToRead, inOutByteArray, FileListNodeContext.getCPtr(context)); 49 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 50 | return ret; 51 | } 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/JoinTeamType.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum JoinTeamType { 12 | JOIN_ANY_AVAILABLE_TEAM, 13 | JOIN_SPECIFIC_TEAM, 14 | JOIN_NO_TEAM 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/LogCommandParser.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class LogCommandParser : CommandParserInterface { 15 | private HandleRef swigCPtr; 16 | 17 | internal LogCommandParser(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.LogCommandParser_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(LogCommandParser obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~LogCommandParser() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_LogCommandParser(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static LogCommandParser GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.LogCommandParser_GetInstance(); 45 | LogCommandParser ret = (cPtr == IntPtr.Zero) ? null : new LogCommandParser(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(LogCommandParser i) { 50 | RakNetPINVOKE.LogCommandParser_DestroyInstance(LogCommandParser.getCPtr(i)); 51 | } 52 | 53 | public LogCommandParser() : this(RakNetPINVOKE.new_LogCommandParser(), true) { 54 | } 55 | 56 | public override bool OnCommand(string command, uint numParameters, string[] parameterList, TransportInterface transport, SystemAddress systemAddress, string originalString) { 57 | bool ret = RakNetPINVOKE.LogCommandParser_OnCommand(swigCPtr, command, numParameters, parameterList, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress), originalString); 58 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 59 | return ret; 60 | } 61 | 62 | public override string GetName() { 63 | string ret = RakNetPINVOKE.LogCommandParser_GetName(swigCPtr); 64 | return ret; 65 | } 66 | 67 | public override void SendHelp(TransportInterface transport, SystemAddress systemAddress) { 68 | RakNetPINVOKE.LogCommandParser_SendHelp(swigCPtr, TransportInterface.getCPtr(transport), SystemAddress.getCPtr(systemAddress)); 69 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 70 | } 71 | 72 | public void AddChannel(string channelName) { 73 | RakNetPINVOKE.LogCommandParser_AddChannel(swigCPtr, channelName); 74 | } 75 | 76 | public void WriteLog(string channelName, string format) { 77 | RakNetPINVOKE.LogCommandParser_WriteLog(swigCPtr, channelName, format); 78 | } 79 | 80 | public override void OnNewIncomingConnection(SystemAddress systemAddress, TransportInterface transport) { 81 | RakNetPINVOKE.LogCommandParser_OnNewIncomingConnection(swigCPtr, SystemAddress.getCPtr(systemAddress), TransportInterface.getCPtr(transport)); 82 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 83 | } 84 | 85 | public override void OnConnectionLost(SystemAddress systemAddress, TransportInterface transport) { 86 | RakNetPINVOKE.LogCommandParser_OnConnectionLost(swigCPtr, SystemAddress.getCPtr(systemAddress), TransportInterface.getCPtr(transport)); 87 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 88 | } 89 | 90 | public override void OnTransportChange(TransportInterface transport) { 91 | RakNetPINVOKE.LogCommandParser_OnTransportChange(swigCPtr, TransportInterface.getCPtr(transport)); 92 | } 93 | 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/MessageFilter.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class MessageFilter : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal MessageFilter(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.MessageFilter_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(MessageFilter obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~MessageFilter() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_MessageFilter(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static MessageFilter GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.MessageFilter_GetInstance(); 45 | MessageFilter ret = (cPtr == IntPtr.Zero) ? null : new MessageFilter(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(MessageFilter i) { 50 | RakNetPINVOKE.MessageFilter_DestroyInstance(MessageFilter.getCPtr(i)); 51 | } 52 | 53 | public MessageFilter() : this(RakNetPINVOKE.new_MessageFilter(), true) { 54 | } 55 | 56 | public void SetAutoAddNewConnectionsToFilter(int filterSetID) { 57 | RakNetPINVOKE.MessageFilter_SetAutoAddNewConnectionsToFilter(swigCPtr, filterSetID); 58 | } 59 | 60 | public void SetAllowMessageID(bool allow, int messageIDStart, int messageIDEnd, int filterSetID) { 61 | RakNetPINVOKE.MessageFilter_SetAllowMessageID(swigCPtr, allow, messageIDStart, messageIDEnd, filterSetID); 62 | } 63 | 64 | public void SetAllowRPC4(bool allow, string uniqueID, int filterSetID) { 65 | RakNetPINVOKE.MessageFilter_SetAllowRPC4(swigCPtr, allow, uniqueID, filterSetID); 66 | } 67 | 68 | public void SetActionOnDisallowedMessage(bool kickOnDisallowed, bool banOnDisallowed, uint banTimeMS, int filterSetID) { 69 | RakNetPINVOKE.MessageFilter_SetActionOnDisallowedMessage(swigCPtr, kickOnDisallowed, banOnDisallowed, banTimeMS, filterSetID); 70 | } 71 | 72 | public void SetFilterMaxTime(int allowedTimeMS, bool banOnExceed, uint banTimeMS, int filterSetID) { 73 | RakNetPINVOKE.MessageFilter_SetFilterMaxTime(swigCPtr, allowedTimeMS, banOnExceed, banTimeMS, filterSetID); 74 | } 75 | 76 | public int GetSystemFilterSet(AddressOrGUID addressOrGUID) { 77 | int ret = RakNetPINVOKE.MessageFilter_GetSystemFilterSet(swigCPtr, AddressOrGUID.getCPtr(addressOrGUID)); 78 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 79 | return ret; 80 | } 81 | 82 | public void SetSystemFilterSet(AddressOrGUID addressOrGUID, int filterSetID) { 83 | RakNetPINVOKE.MessageFilter_SetSystemFilterSet(swigCPtr, AddressOrGUID.getCPtr(addressOrGUID), filterSetID); 84 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 85 | } 86 | 87 | public uint GetSystemCount(int filterSetID) { 88 | uint ret = RakNetPINVOKE.MessageFilter_GetSystemCount(swigCPtr, filterSetID); 89 | return ret; 90 | } 91 | 92 | public uint GetFilterSetCount() { 93 | uint ret = RakNetPINVOKE.MessageFilter_GetFilterSetCount(swigCPtr); 94 | return ret; 95 | } 96 | 97 | public int GetFilterSetIDByIndex(uint index) { 98 | int ret = RakNetPINVOKE.MessageFilter_GetFilterSetIDByIndex(swigCPtr, index); 99 | return ret; 100 | } 101 | 102 | public void DeleteFilterSet(int filterSetID) { 103 | RakNetPINVOKE.MessageFilter_DeleteFilterSet(swigCPtr, filterSetID); 104 | } 105 | 106 | } 107 | 108 | } 109 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/MultilistType.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum MultilistType { 12 | ML_UNORDERED_LIST, 13 | ML_STACK, 14 | ML_QUEUE, 15 | ML_ORDERED_LIST, 16 | ML_VARIABLE_DURING_RUNTIME 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatPunchthroughClient.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatPunchthroughClient : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal NatPunchthroughClient(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatPunchthroughClient_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(NatPunchthroughClient obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~NatPunchthroughClient() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_NatPunchthroughClient(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static NatPunchthroughClient GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.NatPunchthroughClient_GetInstance(); 45 | NatPunchthroughClient ret = (cPtr == IntPtr.Zero) ? null : new NatPunchthroughClient(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(NatPunchthroughClient i) { 50 | RakNetPINVOKE.NatPunchthroughClient_DestroyInstance(NatPunchthroughClient.getCPtr(i)); 51 | } 52 | 53 | public NatPunchthroughClient() : this(RakNetPINVOKE.new_NatPunchthroughClient(), true) { 54 | } 55 | 56 | public void FindRouterPortStride(SystemAddress facilitator) { 57 | RakNetPINVOKE.NatPunchthroughClient_FindRouterPortStride(swigCPtr, SystemAddress.getCPtr(facilitator)); 58 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 59 | } 60 | 61 | public bool OpenNAT(RakNetGUID destination, SystemAddress facilitator) { 62 | bool ret = RakNetPINVOKE.NatPunchthroughClient_OpenNAT(swigCPtr, RakNetGUID.getCPtr(destination), SystemAddress.getCPtr(facilitator)); 63 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 64 | return ret; 65 | } 66 | 67 | public PunchthroughConfiguration GetPunchthroughConfiguration() { 68 | IntPtr cPtr = RakNetPINVOKE.NatPunchthroughClient_GetPunchthroughConfiguration(swigCPtr); 69 | PunchthroughConfiguration ret = (cPtr == IntPtr.Zero) ? null : new PunchthroughConfiguration(cPtr, false); 70 | return ret; 71 | } 72 | 73 | public void SetDebugInterface(NatPunchthroughDebugInterface i) { 74 | RakNetPINVOKE.NatPunchthroughClient_SetDebugInterface(swigCPtr, NatPunchthroughDebugInterface.getCPtr(i)); 75 | } 76 | 77 | public void GetUPNPPortMappings(string externalPort, string internalPort, SystemAddress natPunchthroughServerAddress) { 78 | RakNetPINVOKE.NatPunchthroughClient_GetUPNPPortMappings(swigCPtr, externalPort, internalPort, SystemAddress.getCPtr(natPunchthroughServerAddress)); 79 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 80 | } 81 | 82 | public void Clear() { 83 | RakNetPINVOKE.NatPunchthroughClient_Clear(swigCPtr); 84 | } 85 | 86 | public SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing sp { 87 | set { 88 | RakNetPINVOKE.NatPunchthroughClient_sp_set(swigCPtr, SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing.getCPtr(value)); 89 | } 90 | get { 91 | IntPtr cPtr = RakNetPINVOKE.NatPunchthroughClient_sp_get(swigCPtr); 92 | SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing(cPtr, false); 93 | return ret; 94 | } 95 | } 96 | 97 | } 98 | 99 | } 100 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatPunchthroughDebugInterface.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatPunchthroughDebugInterface : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal NatPunchthroughDebugInterface(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(NatPunchthroughDebugInterface obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~NatPunchthroughDebugInterface() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_NatPunchthroughDebugInterface(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public NatPunchthroughDebugInterface() : this(RakNetPINVOKE.new_NatPunchthroughDebugInterface(), true) { 45 | SwigDirectorConnect(); 46 | } 47 | 48 | public virtual void OnClientMessage(string msg) { 49 | RakNetPINVOKE.NatPunchthroughDebugInterface_OnClientMessage(swigCPtr, msg); 50 | } 51 | 52 | private void SwigDirectorConnect() { 53 | if (SwigDerivedClassHasMethod("OnClientMessage", swigMethodTypes0)) 54 | swigDelegate0 = new SwigDelegateNatPunchthroughDebugInterface_0(SwigDirectorOnClientMessage); 55 | RakNetPINVOKE.NatPunchthroughDebugInterface_director_connect(swigCPtr, swigDelegate0); 56 | } 57 | 58 | private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { 59 | System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null); 60 | bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(NatPunchthroughDebugInterface)); 61 | return hasDerivedMethod; 62 | } 63 | 64 | private void SwigDirectorOnClientMessage(string msg) { 65 | OnClientMessage(msg); 66 | } 67 | 68 | public delegate void SwigDelegateNatPunchthroughDebugInterface_0(string msg); 69 | 70 | private SwigDelegateNatPunchthroughDebugInterface_0 swigDelegate0; 71 | 72 | private static Type[] swigMethodTypes0 = new Type[] { typeof(string) }; 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatPunchthroughDebugInterface_PacketLogger.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatPunchthroughDebugInterface_PacketLogger : NatPunchthroughDebugInterface { 15 | private HandleRef swigCPtr; 16 | 17 | internal NatPunchthroughDebugInterface_PacketLogger(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatPunchthroughDebugInterface_PacketLogger_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(NatPunchthroughDebugInterface_PacketLogger obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~NatPunchthroughDebugInterface_PacketLogger() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_NatPunchthroughDebugInterface_PacketLogger(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public PacketLogger pl { 44 | set { 45 | RakNetPINVOKE.NatPunchthroughDebugInterface_PacketLogger_pl_set(swigCPtr, PacketLogger.getCPtr(value)); 46 | } 47 | get { 48 | IntPtr cPtr = RakNetPINVOKE.NatPunchthroughDebugInterface_PacketLogger_pl_get(swigCPtr); 49 | PacketLogger ret = (cPtr == IntPtr.Zero) ? null : new PacketLogger(cPtr, false); 50 | return ret; 51 | } 52 | } 53 | 54 | public NatPunchthroughDebugInterface_PacketLogger() : this(RakNetPINVOKE.new_NatPunchthroughDebugInterface_PacketLogger(), true) { 55 | } 56 | 57 | public override void OnClientMessage(string msg) { 58 | RakNetPINVOKE.NatPunchthroughDebugInterface_PacketLogger_OnClientMessage(swigCPtr, msg); 59 | } 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatPunchthroughDebugInterface_Printf.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatPunchthroughDebugInterface_Printf : NatPunchthroughDebugInterface { 15 | private HandleRef swigCPtr; 16 | 17 | internal NatPunchthroughDebugInterface_Printf(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatPunchthroughDebugInterface_Printf_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(NatPunchthroughDebugInterface_Printf obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~NatPunchthroughDebugInterface_Printf() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_NatPunchthroughDebugInterface_Printf(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public override void OnClientMessage(string msg) { 44 | RakNetPINVOKE.NatPunchthroughDebugInterface_Printf_OnClientMessage(swigCPtr, msg); 45 | } 46 | 47 | public NatPunchthroughDebugInterface_Printf() : this(RakNetPINVOKE.new_NatPunchthroughDebugInterface_Printf(), true) { 48 | } 49 | 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatPunchthroughServer.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatPunchthroughServer : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal NatPunchthroughServer(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatPunchthroughServer_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(NatPunchthroughServer obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~NatPunchthroughServer() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_NatPunchthroughServer(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static NatPunchthroughServer GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.NatPunchthroughServer_GetInstance(); 45 | NatPunchthroughServer ret = (cPtr == IntPtr.Zero) ? null : new NatPunchthroughServer(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(NatPunchthroughServer i) { 50 | RakNetPINVOKE.NatPunchthroughServer_DestroyInstance(NatPunchthroughServer.getCPtr(i)); 51 | } 52 | 53 | public NatPunchthroughServer() : this(RakNetPINVOKE.new_NatPunchthroughServer(), true) { 54 | } 55 | 56 | public void SetDebugInterface(NatPunchthroughServerDebugInterface i) { 57 | RakNetPINVOKE.NatPunchthroughServer_SetDebugInterface(swigCPtr, NatPunchthroughServerDebugInterface.getCPtr(i)); 58 | } 59 | 60 | public ulong lastUpdate { 61 | set { 62 | RakNetPINVOKE.NatPunchthroughServer_lastUpdate_set(swigCPtr, value); 63 | } 64 | get { 65 | ulong ret = RakNetPINVOKE.NatPunchthroughServer_lastUpdate_get(swigCPtr); 66 | return ret; 67 | } 68 | } 69 | 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatPunchthroughServerDebugInterface.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatPunchthroughServerDebugInterface : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal NatPunchthroughServerDebugInterface(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(NatPunchthroughServerDebugInterface obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~NatPunchthroughServerDebugInterface() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_NatPunchthroughServerDebugInterface(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public virtual void OnServerMessage(string msg) { 45 | RakNetPINVOKE.NatPunchthroughServerDebugInterface_OnServerMessage(swigCPtr, msg); 46 | } 47 | 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatPunchthroughServerDebugInterface_PacketLogger.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatPunchthroughServerDebugInterface_PacketLogger : NatPunchthroughServerDebugInterface { 15 | private HandleRef swigCPtr; 16 | 17 | internal NatPunchthroughServerDebugInterface_PacketLogger(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatPunchthroughServerDebugInterface_PacketLogger_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(NatPunchthroughServerDebugInterface_PacketLogger obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~NatPunchthroughServerDebugInterface_PacketLogger() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_NatPunchthroughServerDebugInterface_PacketLogger(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public PacketLogger pl { 44 | set { 45 | RakNetPINVOKE.NatPunchthroughServerDebugInterface_PacketLogger_pl_set(swigCPtr, PacketLogger.getCPtr(value)); 46 | } 47 | get { 48 | IntPtr cPtr = RakNetPINVOKE.NatPunchthroughServerDebugInterface_PacketLogger_pl_get(swigCPtr); 49 | PacketLogger ret = (cPtr == IntPtr.Zero) ? null : new PacketLogger(cPtr, false); 50 | return ret; 51 | } 52 | } 53 | 54 | public NatPunchthroughServerDebugInterface_PacketLogger() : this(RakNetPINVOKE.new_NatPunchthroughServerDebugInterface_PacketLogger(), true) { 55 | } 56 | 57 | public override void OnServerMessage(string msg) { 58 | RakNetPINVOKE.NatPunchthroughServerDebugInterface_PacketLogger_OnServerMessage(swigCPtr, msg); 59 | } 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatPunchthroughServerDebugInterface_Printf.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatPunchthroughServerDebugInterface_Printf : NatPunchthroughServerDebugInterface { 15 | private HandleRef swigCPtr; 16 | 17 | internal NatPunchthroughServerDebugInterface_Printf(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatPunchthroughServerDebugInterface_Printf_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(NatPunchthroughServerDebugInterface_Printf obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~NatPunchthroughServerDebugInterface_Printf() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_NatPunchthroughServerDebugInterface_Printf(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public override void OnServerMessage(string msg) { 44 | RakNetPINVOKE.NatPunchthroughServerDebugInterface_Printf_OnServerMessage(swigCPtr, msg); 45 | } 46 | 47 | public NatPunchthroughServerDebugInterface_Printf() : this(RakNetPINVOKE.new_NatPunchthroughServerDebugInterface_Printf(), true) { 48 | } 49 | 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatTypeDetectionClient.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatTypeDetectionClient : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal NatTypeDetectionClient(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatTypeDetectionClient_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(NatTypeDetectionClient obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~NatTypeDetectionClient() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_NatTypeDetectionClient(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static NatTypeDetectionClient GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.NatTypeDetectionClient_GetInstance(); 45 | NatTypeDetectionClient ret = (cPtr == IntPtr.Zero) ? null : new NatTypeDetectionClient(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(NatTypeDetectionClient i) { 50 | RakNetPINVOKE.NatTypeDetectionClient_DestroyInstance(NatTypeDetectionClient.getCPtr(i)); 51 | } 52 | 53 | public NatTypeDetectionClient() : this(RakNetPINVOKE.new_NatTypeDetectionClient(), true) { 54 | } 55 | 56 | public void DetectNATType(SystemAddress _serverAddress) { 57 | RakNetPINVOKE.NatTypeDetectionClient_DetectNATType(swigCPtr, SystemAddress.getCPtr(_serverAddress)); 58 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 59 | } 60 | 61 | public virtual void OnRNS2Recv(SWIGTYPE_p_RNS2RecvStruct recvStruct) { 62 | RakNetPINVOKE.NatTypeDetectionClient_OnRNS2Recv(swigCPtr, SWIGTYPE_p_RNS2RecvStruct.getCPtr(recvStruct)); 63 | } 64 | 65 | public virtual void DeallocRNS2RecvStruct(SWIGTYPE_p_RNS2RecvStruct s, string file, uint line) { 66 | RakNetPINVOKE.NatTypeDetectionClient_DeallocRNS2RecvStruct(swigCPtr, SWIGTYPE_p_RNS2RecvStruct.getCPtr(s), file, line); 67 | } 68 | 69 | public virtual SWIGTYPE_p_RNS2RecvStruct AllocRNS2RecvStruct(string file, uint line) { 70 | IntPtr cPtr = RakNetPINVOKE.NatTypeDetectionClient_AllocRNS2RecvStruct(swigCPtr, file, line); 71 | SWIGTYPE_p_RNS2RecvStruct ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_RNS2RecvStruct(cPtr, false); 72 | return ret; 73 | } 74 | 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NatTypeDetectionServer.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class NatTypeDetectionServer : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal NatTypeDetectionServer(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.NatTypeDetectionServer_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(NatTypeDetectionServer obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~NatTypeDetectionServer() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_NatTypeDetectionServer(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static NatTypeDetectionServer GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.NatTypeDetectionServer_GetInstance(); 45 | NatTypeDetectionServer ret = (cPtr == IntPtr.Zero) ? null : new NatTypeDetectionServer(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(NatTypeDetectionServer i) { 50 | RakNetPINVOKE.NatTypeDetectionServer_DestroyInstance(NatTypeDetectionServer.getCPtr(i)); 51 | } 52 | 53 | public NatTypeDetectionServer() : this(RakNetPINVOKE.new_NatTypeDetectionServer(), true) { 54 | } 55 | 56 | public void Startup(string nonRakNetIP2, string nonRakNetIP3, string nonRakNetIP4) { 57 | RakNetPINVOKE.NatTypeDetectionServer_Startup(swigCPtr, nonRakNetIP2, nonRakNetIP3, nonRakNetIP4); 58 | } 59 | 60 | public void Shutdown() { 61 | RakNetPINVOKE.NatTypeDetectionServer_Shutdown(swigCPtr); 62 | } 63 | 64 | public virtual void OnRNS2Recv(SWIGTYPE_p_RNS2RecvStruct recvStruct) { 65 | RakNetPINVOKE.NatTypeDetectionServer_OnRNS2Recv(swigCPtr, SWIGTYPE_p_RNS2RecvStruct.getCPtr(recvStruct)); 66 | } 67 | 68 | public virtual void DeallocRNS2RecvStruct(SWIGTYPE_p_RNS2RecvStruct s, string file, uint line) { 69 | RakNetPINVOKE.NatTypeDetectionServer_DeallocRNS2RecvStruct(swigCPtr, SWIGTYPE_p_RNS2RecvStruct.getCPtr(s), file, line); 70 | } 71 | 72 | public virtual SWIGTYPE_p_RNS2RecvStruct AllocRNS2RecvStruct(string file, uint line) { 73 | IntPtr cPtr = RakNetPINVOKE.NatTypeDetectionServer_AllocRNS2RecvStruct(swigCPtr, file, line); 74 | SWIGTYPE_p_RNS2RecvStruct ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_RNS2RecvStruct(cPtr, false); 75 | return ret; 76 | } 77 | 78 | public enum NATDetectionState { 79 | STATE_NONE, 80 | STATE_TESTING_NONE_1, 81 | STATE_TESTING_NONE_2, 82 | STATE_TESTING_FULL_CONE_1, 83 | STATE_TESTING_FULL_CONE_2, 84 | STATE_TESTING_ADDRESS_RESTRICTED_1, 85 | STATE_TESTING_ADDRESS_RESTRICTED_2, 86 | STATE_TESTING_PORT_RESTRICTED_1, 87 | STATE_TESTING_PORT_RESTRICTED_2, 88 | STATE_DONE 89 | } 90 | 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/NetworkIDManager.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | using System.Collections.Generic; 14 | 15 | public class NetworkIDManager : IDisposable { 16 | private HandleRef swigCPtr; 17 | protected bool swigCMemOwn; 18 | 19 | internal NetworkIDManager(IntPtr cPtr, bool cMemoryOwn) { 20 | swigCMemOwn = cMemoryOwn; 21 | swigCPtr = new HandleRef(this, cPtr); 22 | } 23 | 24 | internal static HandleRef getCPtr(NetworkIDManager obj) { 25 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 26 | } 27 | 28 | ~NetworkIDManager() { 29 | Dispose(); 30 | } 31 | 32 | public virtual void Dispose() { 33 | lock(this) { 34 | if (swigCPtr.Handle != IntPtr.Zero) { 35 | if (swigCMemOwn) { 36 | swigCMemOwn = false; 37 | RakNetPINVOKE.delete_NetworkIDManager(swigCPtr); 38 | } 39 | swigCPtr = new HandleRef(null, IntPtr.Zero); 40 | } 41 | GC.SuppressFinalize(this); 42 | } 43 | } 44 | 45 | public Dictionary pointerDictionary = new Dictionary(); 46 | 47 | public NetworkIDObject GET_BASE_OBJECT_FROM_ID(ulong x) 48 | { 49 | return pointerDictionary[GET_BASE_OBJECT_FROM_IDORIG(x).GetIntPtr()]; 50 | } 51 | 52 | 53 | public static NetworkIDManager GetInstance() { 54 | IntPtr cPtr = RakNetPINVOKE.NetworkIDManager_GetInstance(); 55 | NetworkIDManager ret = (cPtr == IntPtr.Zero) ? null : new NetworkIDManager(cPtr, false); 56 | return ret; 57 | } 58 | 59 | public static void DestroyInstance(NetworkIDManager i) { 60 | RakNetPINVOKE.NetworkIDManager_DestroyInstance(NetworkIDManager.getCPtr(i)); 61 | } 62 | 63 | public NetworkIDManager() : this(RakNetPINVOKE.new_NetworkIDManager(), true) { 64 | } 65 | 66 | public void Clear() { 67 | RakNetPINVOKE.NetworkIDManager_Clear(swigCPtr); 68 | } 69 | 70 | protected NetworkIDObject GET_BASE_OBJECT_FROM_IDORIG(ulong x) { 71 | IntPtr cPtr = RakNetPINVOKE.NetworkIDManager_GET_BASE_OBJECT_FROM_IDORIG(swigCPtr, x); 72 | NetworkIDObject ret = (cPtr == IntPtr.Zero) ? null : new NetworkIDObject(cPtr, false); 73 | return ret; 74 | } 75 | 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/OutOfBandIdentifiers.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum OutOfBandIdentifiers { 12 | ID_NAT_ESTABLISH_UNIDIRECTIONAL, 13 | ID_NAT_ESTABLISH_BIDIRECTIONAL, 14 | ID_NAT_TYPE_DETECT, 15 | ID_ROUTER_2_REPLY_TO_SENDER_PORT, 16 | ID_ROUTER_2_REPLY_TO_SPECIFIED_PORT, 17 | ID_ROUTER_2_MINI_PUNCH_REPLY, 18 | ID_ROUTER_2_MINI_PUNCH_REPLY_BOUNCE, 19 | ID_XBOX_360_VOICE, 20 | ID_XBOX_360_GET_NETWORK_ROOM, 21 | ID_XBOX_360_RETURN_NETWORK_ROOM, 22 | ID_NAT_PING, 23 | ID_NAT_PONG 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/Packet.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class Packet : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal Packet(IntPtr cPtr, bool cMemoryOwn) 19 | { 20 | swigCMemOwn = cMemoryOwn; 21 | swigCPtr = new HandleRef(this, cPtr); 22 | } 23 | 24 | internal static HandleRef getCPtr(Packet obj) 25 | { 26 | if (obj != null) 27 | { 28 | if (obj.dataIsCached) 29 | { 30 | obj.SetPacketData(obj.data, obj.data.Length); //If an individual index was modified we need to copy the data before passing to C++ 31 | } 32 | obj.dataIsCached=false; 33 | } 34 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 35 | } 36 | 37 | ~Packet() { 38 | Dispose(); 39 | } 40 | 41 | public virtual void Dispose() { 42 | lock(this) { 43 | if (swigCPtr.Handle != IntPtr.Zero) { 44 | if (swigCMemOwn) { 45 | swigCMemOwn = false; 46 | RakNetPINVOKE.delete_Packet(swigCPtr); 47 | } 48 | swigCPtr = new HandleRef(null, IntPtr.Zero); 49 | } 50 | GC.SuppressFinalize(this); 51 | } 52 | } 53 | 54 | private bool dataIsCached = false; 55 | private byte[] dataCache; 56 | 57 | public SystemAddress systemAddress { 58 | set { 59 | RakNetPINVOKE.Packet_systemAddress_set(swigCPtr, SystemAddress.getCPtr(value)); 60 | } 61 | get { 62 | IntPtr cPtr = RakNetPINVOKE.Packet_systemAddress_get(swigCPtr); 63 | SystemAddress ret = (cPtr == IntPtr.Zero) ? null : new SystemAddress(cPtr, false); 64 | return ret; 65 | } 66 | } 67 | 68 | public RakNetGUID guid { 69 | set { 70 | RakNetPINVOKE.Packet_guid_set(swigCPtr, RakNetGUID.getCPtr(value)); 71 | } 72 | get { 73 | IntPtr cPtr = RakNetPINVOKE.Packet_guid_get(swigCPtr); 74 | RakNetGUID ret = (cPtr == IntPtr.Zero) ? null : new RakNetGUID(cPtr, false); 75 | return ret; 76 | } 77 | } 78 | 79 | public uint length { 80 | set { 81 | RakNetPINVOKE.Packet_length_set(swigCPtr, value); 82 | } 83 | get { 84 | uint ret = RakNetPINVOKE.Packet_length_get(swigCPtr); 85 | return ret; 86 | } 87 | } 88 | 89 | public uint bitSize { 90 | set { 91 | RakNetPINVOKE.Packet_bitSize_set(swigCPtr, value); 92 | } 93 | get { 94 | uint ret = RakNetPINVOKE.Packet_bitSize_get(swigCPtr); 95 | return ret; 96 | } 97 | } 98 | 99 | public byte[] data { 100 | set 101 | { 102 | dataCache=value; 103 | dataIsCached = true; 104 | SetPacketData (value, value.Length); 105 | 106 | 107 | } 108 | 109 | get 110 | { 111 | byte[] returnBytes; 112 | if (!dataIsCached) 113 | { 114 | IntPtr cPtr = RakNetPINVOKE.Packet_data_get (swigCPtr); 115 | int len = (int)((Packet)swigCPtr.Wrapper).length; 116 | if (len<=0) 117 | { 118 | return null; 119 | } 120 | returnBytes = new byte[len]; 121 | Marshal.Copy(cPtr, returnBytes, 0, len); 122 | dataCache = returnBytes; 123 | dataIsCached = true; 124 | } 125 | else 126 | { 127 | returnBytes = dataCache; 128 | } 129 | return returnBytes; 130 | } 131 | 132 | } 133 | 134 | public bool deleteData { 135 | set { 136 | RakNetPINVOKE.Packet_deleteData_set(swigCPtr, value); 137 | } 138 | get { 139 | bool ret = RakNetPINVOKE.Packet_deleteData_get(swigCPtr); 140 | return ret; 141 | } 142 | } 143 | 144 | public bool wasGeneratedLocally { 145 | set { 146 | RakNetPINVOKE.Packet_wasGeneratedLocally_set(swigCPtr, value); 147 | } 148 | get { 149 | bool ret = RakNetPINVOKE.Packet_wasGeneratedLocally_get(swigCPtr); 150 | return ret; 151 | } 152 | } 153 | 154 | public Packet() : this(RakNetPINVOKE.new_Packet(), true) { 155 | } 156 | 157 | public void SetPacketData(byte[] inByteArray, int numBytes) { 158 | RakNetPINVOKE.Packet_SetPacketData(swigCPtr, inByteArray, numBytes); 159 | } 160 | 161 | } 162 | 163 | } 164 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/PacketConsoleLogger.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class PacketConsoleLogger : PacketLogger { 15 | private HandleRef swigCPtr; 16 | 17 | internal PacketConsoleLogger(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.PacketConsoleLogger_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(PacketConsoleLogger obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~PacketConsoleLogger() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_PacketConsoleLogger(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public PacketConsoleLogger() : this(RakNetPINVOKE.new_PacketConsoleLogger(), true) { 44 | } 45 | 46 | public virtual void SetLogCommandParser(LogCommandParser lcp) { 47 | RakNetPINVOKE.PacketConsoleLogger_SetLogCommandParser(swigCPtr, LogCommandParser.getCPtr(lcp)); 48 | } 49 | 50 | public override void WriteLog(string str) { 51 | RakNetPINVOKE.PacketConsoleLogger_WriteLog(swigCPtr, str); 52 | } 53 | 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/PacketFileLogger.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class PacketFileLogger : PacketLogger { 15 | private HandleRef swigCPtr; 16 | 17 | internal PacketFileLogger(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.PacketFileLogger_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(PacketFileLogger obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~PacketFileLogger() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_PacketFileLogger(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public PacketFileLogger() : this(RakNetPINVOKE.new_PacketFileLogger(), true) { 44 | } 45 | 46 | public void StartLog(string filenamePrefix) { 47 | RakNetPINVOKE.PacketFileLogger_StartLog(swigCPtr, filenamePrefix); 48 | } 49 | 50 | public override void WriteLog(string str) { 51 | RakNetPINVOKE.PacketFileLogger_WriteLog(swigCPtr, str); 52 | } 53 | 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/PacketPriority.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum PacketPriority { 12 | IMMEDIATE_PRIORITY, 13 | HIGH_PRIORITY, 14 | MEDIUM_PRIORITY, 15 | LOW_PRIORITY, 16 | NUMBER_OF_PRIORITIES 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/PacketReliability.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum PacketReliability { 12 | UNRELIABLE, 13 | UNRELIABLE_SEQUENCED, 14 | RELIABLE, 15 | RELIABLE_ORDERED, 16 | RELIABLE_SEQUENCED, 17 | UNRELIABLE_WITH_ACK_RECEIPT, 18 | RELIABLE_WITH_ACK_RECEIPT, 19 | RELIABLE_ORDERED_WITH_ACK_RECEIPT, 20 | NUMBER_OF_RELIABILITIES 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/PluginInterface2.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class PluginInterface2 : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal PluginInterface2(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(PluginInterface2 obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~PluginInterface2() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_PluginInterface2(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public PluginInterface2() : this(RakNetPINVOKE.new_PluginInterface2(), true) { 45 | } 46 | 47 | public virtual bool UsesReliabilityLayer() { 48 | bool ret = RakNetPINVOKE.PluginInterface2_UsesReliabilityLayer(swigCPtr); 49 | return ret; 50 | } 51 | 52 | public virtual void OnReliabilityLayerNotification(string errorMessage, uint bitsUsed, SystemAddress remoteSystemAddress, bool isError) { 53 | RakNetPINVOKE.PluginInterface2_OnReliabilityLayerNotification(swigCPtr, errorMessage, bitsUsed, SystemAddress.getCPtr(remoteSystemAddress), isError); 54 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 55 | } 56 | 57 | public RakPeerInterface GetRakPeerInterface() { 58 | IntPtr cPtr = RakNetPINVOKE.PluginInterface2_GetRakPeerInterface(swigCPtr); 59 | RakPeerInterface ret = (cPtr == IntPtr.Zero) ? null : new RakPeerInterface(cPtr, false); 60 | return ret; 61 | } 62 | 63 | public RakNetGUID GetMyGUIDUnified() { 64 | RakNetGUID ret = new RakNetGUID(RakNetPINVOKE.PluginInterface2_GetMyGUIDUnified(swigCPtr), true); 65 | return ret; 66 | } 67 | 68 | public void SetTCPInterface(SWIGTYPE_p_RakNet__TCPInterface ptr) { 69 | RakNetPINVOKE.PluginInterface2_SetTCPInterface(swigCPtr, SWIGTYPE_p_RakNet__TCPInterface.getCPtr(ptr)); 70 | } 71 | 72 | } 73 | 74 | } 75 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/PluginReceiveResult.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum PluginReceiveResult { 12 | RR_STOP_PROCESSING_AND_DEALLOCATE = 0, 13 | RR_CONTINUE_PROCESSING, 14 | RR_STOP_PROCESSING 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/PublicKey.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class PublicKey : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal PublicKey(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(PublicKey obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~PublicKey() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_PublicKey(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public PublicKeyMode publicKeyMode { 45 | set { 46 | RakNetPINVOKE.PublicKey_publicKeyMode_set(swigCPtr, (int)value); 47 | } 48 | get { 49 | PublicKeyMode ret = (PublicKeyMode)RakNetPINVOKE.PublicKey_publicKeyMode_get(swigCPtr); 50 | return ret; 51 | } 52 | } 53 | 54 | public string remoteServerPublicKey { 55 | set { 56 | RakNetPINVOKE.PublicKey_remoteServerPublicKey_set(swigCPtr, value); 57 | } 58 | get { 59 | string ret = RakNetPINVOKE.PublicKey_remoteServerPublicKey_get(swigCPtr); 60 | return ret; 61 | } 62 | } 63 | 64 | public string myPublicKey { 65 | set { 66 | RakNetPINVOKE.PublicKey_myPublicKey_set(swigCPtr, value); 67 | } 68 | get { 69 | string ret = RakNetPINVOKE.PublicKey_myPublicKey_get(swigCPtr); 70 | return ret; 71 | } 72 | } 73 | 74 | public string myPrivateKey { 75 | set { 76 | RakNetPINVOKE.PublicKey_myPrivateKey_set(swigCPtr, value); 77 | } 78 | get { 79 | string ret = RakNetPINVOKE.PublicKey_myPrivateKey_get(swigCPtr); 80 | return ret; 81 | } 82 | } 83 | 84 | public PublicKey() : this(RakNetPINVOKE.new_PublicKey(), true) { 85 | } 86 | 87 | } 88 | 89 | } 90 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/PublicKeyMode.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum PublicKeyMode { 12 | PKM_INSECURE_CONNECTION, 13 | PKM_ACCEPT_ANY_PUBLIC_KEY, 14 | PKM_USE_KNOWN_PUBLIC_KEY, 15 | PKM_USE_TWO_WAY_AUTHENTICATION 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/RNSPerSecondMetrics.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum RNSPerSecondMetrics { 12 | USER_MESSAGE_BYTES_PUSHED, 13 | USER_MESSAGE_BYTES_SENT, 14 | USER_MESSAGE_BYTES_RESENT, 15 | USER_MESSAGE_BYTES_RECEIVED_PROCESSED, 16 | USER_MESSAGE_BYTES_RECEIVED_IGNORED, 17 | ACTUAL_BYTES_SENT, 18 | ACTUAL_BYTES_RECEIVED, 19 | RNS_PER_SECOND_METRICS_COUNT 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/RakNetBPlusTreeRow.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class RakNetBPlusTreeRow : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal RakNetBPlusTreeRow(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(RakNetBPlusTreeRow obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~RakNetBPlusTreeRow() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_RakNetBPlusTreeRow(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public RakNetBPlusTreeRow() : this(RakNetPINVOKE.new_RakNetBPlusTreeRow(), true) { 45 | } 46 | 47 | public void SetPoolPageSize(int size) { 48 | RakNetPINVOKE.RakNetBPlusTreeRow_SetPoolPageSize(swigCPtr, size); 49 | } 50 | 51 | public bool Insert(uint key, Row data) { 52 | bool ret = RakNetPINVOKE.RakNetBPlusTreeRow_Insert(swigCPtr, key, Row.getCPtr(data)); 53 | return ret; 54 | } 55 | 56 | public void Clear() { 57 | RakNetPINVOKE.RakNetBPlusTreeRow_Clear(swigCPtr); 58 | } 59 | 60 | public uint Size() { 61 | uint ret = RakNetPINVOKE.RakNetBPlusTreeRow_Size(swigCPtr); 62 | return ret; 63 | } 64 | 65 | public bool IsEmpty() { 66 | bool ret = RakNetPINVOKE.RakNetBPlusTreeRow_IsEmpty(swigCPtr); 67 | return ret; 68 | } 69 | 70 | public RakNetPageRow GetListHead() { 71 | IntPtr cPtr = RakNetPINVOKE.RakNetBPlusTreeRow_GetListHead(swigCPtr); 72 | RakNetPageRow ret = (cPtr == IntPtr.Zero) ? null : new RakNetPageRow(cPtr, false); 73 | return ret; 74 | } 75 | 76 | public Row GetDataHead() { 77 | IntPtr cPtr = RakNetPINVOKE.RakNetBPlusTreeRow_GetDataHead(swigCPtr); 78 | Row ret = (cPtr == IntPtr.Zero) ? null : new Row(cPtr, false); 79 | return ret; 80 | } 81 | 82 | public void PrintLeaves() { 83 | RakNetPINVOKE.RakNetBPlusTreeRow_PrintLeaves(swigCPtr); 84 | } 85 | 86 | public void PrintGraph() { 87 | RakNetPINVOKE.RakNetBPlusTreeRow_PrintGraph(swigCPtr); 88 | } 89 | 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/RakNetListCell.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class RakNetListCell : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal RakNetListCell(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(RakNetListCell obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~RakNetListCell() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_RakNetListCell(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public Cell this[int index] 45 | { 46 | get 47 | { 48 | return Get((uint)index); // use indexto retrieve and return another value. 49 | } 50 | set 51 | { 52 | Replace(value, value, (uint)index, "Not used", 0);// use index and value to set the value somewhere. 53 | } 54 | } 55 | 56 | public RakNetListCell() : this(RakNetPINVOKE.new_RakNetListCell__SWIG_0(), true) { 57 | } 58 | 59 | public RakNetListCell(RakNetListCell original_copy) : this(RakNetPINVOKE.new_RakNetListCell__SWIG_1(RakNetListCell.getCPtr(original_copy)), true) { 60 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 61 | } 62 | 63 | public RakNetListCell CopyData(RakNetListCell original_copy) { 64 | RakNetListCell ret = new RakNetListCell(RakNetPINVOKE.RakNetListCell_CopyData(swigCPtr, RakNetListCell.getCPtr(original_copy)), false); 65 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 66 | return ret; 67 | } 68 | 69 | public Cell Get(uint position) { 70 | Cell ret = new Cell(RakNetPINVOKE.RakNetListCell_Get(swigCPtr, position), false); 71 | return ret; 72 | } 73 | 74 | public void Push(Cell input, string file, uint line) { 75 | RakNetPINVOKE.RakNetListCell_Push(swigCPtr, Cell.getCPtr(input), file, line); 76 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 77 | } 78 | 79 | public Cell Pop() { 80 | Cell ret = new Cell(RakNetPINVOKE.RakNetListCell_Pop(swigCPtr), false); 81 | return ret; 82 | } 83 | 84 | public void Insert(Cell input, uint position, string file, uint line) { 85 | RakNetPINVOKE.RakNetListCell_Insert__SWIG_0(swigCPtr, Cell.getCPtr(input), position, file, line); 86 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 87 | } 88 | 89 | public void Insert(Cell input, string file, uint line) { 90 | RakNetPINVOKE.RakNetListCell_Insert__SWIG_1(swigCPtr, Cell.getCPtr(input), file, line); 91 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 92 | } 93 | 94 | public void Replace(Cell input, Cell filler, uint position, string file, uint line) { 95 | RakNetPINVOKE.RakNetListCell_Replace__SWIG_0(swigCPtr, Cell.getCPtr(input), Cell.getCPtr(filler), position, file, line); 96 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 97 | } 98 | 99 | public void Replace(Cell input) { 100 | RakNetPINVOKE.RakNetListCell_Replace__SWIG_1(swigCPtr, Cell.getCPtr(input)); 101 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 102 | } 103 | 104 | public void RemoveAtIndex(uint position) { 105 | RakNetPINVOKE.RakNetListCell_RemoveAtIndex(swigCPtr, position); 106 | } 107 | 108 | public void RemoveAtIndexFast(uint position) { 109 | RakNetPINVOKE.RakNetListCell_RemoveAtIndexFast(swigCPtr, position); 110 | } 111 | 112 | public void RemoveFromEnd(uint num) { 113 | RakNetPINVOKE.RakNetListCell_RemoveFromEnd__SWIG_0(swigCPtr, num); 114 | } 115 | 116 | public void RemoveFromEnd() { 117 | RakNetPINVOKE.RakNetListCell_RemoveFromEnd__SWIG_1(swigCPtr); 118 | } 119 | 120 | public uint Size() { 121 | uint ret = RakNetPINVOKE.RakNetListCell_Size(swigCPtr); 122 | return ret; 123 | } 124 | 125 | public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) { 126 | RakNetPINVOKE.RakNetListCell_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line); 127 | } 128 | 129 | public void Preallocate(uint countNeeded, string file, uint line) { 130 | RakNetPINVOKE.RakNetListCell_Preallocate(swigCPtr, countNeeded, file, line); 131 | } 132 | 133 | public void Compress(string file, uint line) { 134 | RakNetPINVOKE.RakNetListCell_Compress(swigCPtr, file, line); 135 | } 136 | 137 | } 138 | 139 | } 140 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/RakNetPageRow.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class RakNetPageRow : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal RakNetPageRow(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(RakNetPageRow obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~RakNetPageRow() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_RakNetPageRow(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public bool isLeaf { 45 | set { 46 | RakNetPINVOKE.RakNetPageRow_isLeaf_set(swigCPtr, value); 47 | } 48 | get { 49 | bool ret = RakNetPINVOKE.RakNetPageRow_isLeaf_get(swigCPtr); 50 | return ret; 51 | } 52 | } 53 | 54 | public int size { 55 | set { 56 | RakNetPINVOKE.RakNetPageRow_size_set(swigCPtr, value); 57 | } 58 | get { 59 | int ret = RakNetPINVOKE.RakNetPageRow_size_get(swigCPtr); 60 | return ret; 61 | } 62 | } 63 | 64 | public RakNetPageRow next { 65 | set { 66 | RakNetPINVOKE.RakNetPageRow_next_set(swigCPtr, RakNetPageRow.getCPtr(value)); 67 | } 68 | get { 69 | IntPtr cPtr = RakNetPINVOKE.RakNetPageRow_next_get(swigCPtr); 70 | RakNetPageRow ret = (cPtr == IntPtr.Zero) ? null : new RakNetPageRow(cPtr, false); 71 | return ret; 72 | } 73 | } 74 | 75 | public RakNetPageRow previous { 76 | set { 77 | RakNetPINVOKE.RakNetPageRow_previous_set(swigCPtr, RakNetPageRow.getCPtr(value)); 78 | } 79 | get { 80 | IntPtr cPtr = RakNetPINVOKE.RakNetPageRow_previous_get(swigCPtr); 81 | RakNetPageRow ret = (cPtr == IntPtr.Zero) ? null : new RakNetPageRow(cPtr, false); 82 | return ret; 83 | } 84 | } 85 | 86 | public RakNetPageRow() : this(RakNetPINVOKE.new_RakNetPageRow(), true) { 87 | } 88 | 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/ReadyEventSystemStatus.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum ReadyEventSystemStatus { 12 | RES_NOT_WAITING, 13 | RES_WAITING, 14 | RES_READY, 15 | RES_ALL_READY, 16 | RES_UNKNOWN_EVENT 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/RemoteSystemIndex.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class RemoteSystemIndex : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal RemoteSystemIndex(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(RemoteSystemIndex obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~RemoteSystemIndex() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_RemoteSystemIndex(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public uint index { 45 | set { 46 | RakNetPINVOKE.RemoteSystemIndex_index_set(swigCPtr, value); 47 | } 48 | get { 49 | uint ret = RakNetPINVOKE.RemoteSystemIndex_index_get(swigCPtr); 50 | return ret; 51 | } 52 | } 53 | 54 | public RemoteSystemIndex next { 55 | set { 56 | RakNetPINVOKE.RemoteSystemIndex_next_set(swigCPtr, RemoteSystemIndex.getCPtr(value)); 57 | } 58 | get { 59 | IntPtr cPtr = RakNetPINVOKE.RemoteSystemIndex_next_get(swigCPtr); 60 | RemoteSystemIndex ret = (cPtr == IntPtr.Zero) ? null : new RemoteSystemIndex(cPtr, false); 61 | return ret; 62 | } 63 | } 64 | 65 | public RemoteSystemIndex() : this(RakNetPINVOKE.new_RemoteSystemIndex(), true) { 66 | } 67 | 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/Router2.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class Router2 : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal Router2(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.Router2_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(Router2 obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~Router2() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_Router2(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static Router2 GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.Router2_GetInstance(); 45 | Router2 ret = (cPtr == IntPtr.Zero) ? null : new Router2(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(Router2 i) { 50 | RakNetPINVOKE.Router2_DestroyInstance(Router2.getCPtr(i)); 51 | } 52 | 53 | public Router2() : this(RakNetPINVOKE.new_Router2(), true) { 54 | } 55 | 56 | public void SetSocketFamily(ushort _socketFamily) { 57 | RakNetPINVOKE.Router2_SetSocketFamily(swigCPtr, _socketFamily); 58 | } 59 | 60 | public void EstablishRouting(RakNetGUID endpointGuid) { 61 | RakNetPINVOKE.Router2_EstablishRouting(swigCPtr, RakNetGUID.getCPtr(endpointGuid)); 62 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 63 | } 64 | 65 | public void SetMaximumForwardingRequests(int max) { 66 | RakNetPINVOKE.Router2_SetMaximumForwardingRequests(swigCPtr, max); 67 | } 68 | 69 | public void SetDebugInterface(Router2DebugInterface _debugInterface) { 70 | RakNetPINVOKE.Router2_SetDebugInterface(swigCPtr, Router2DebugInterface.getCPtr(_debugInterface)); 71 | } 72 | 73 | public Router2DebugInterface GetDebugInterface() { 74 | IntPtr cPtr = RakNetPINVOKE.Router2_GetDebugInterface(swigCPtr); 75 | Router2DebugInterface ret = (cPtr == IntPtr.Zero) ? null : new Router2DebugInterface(cPtr, false); 76 | return ret; 77 | } 78 | 79 | public uint GetConnectionRequestIndex(RakNetGUID endpointGuid) { 80 | uint ret = RakNetPINVOKE.Router2_GetConnectionRequestIndex(swigCPtr, RakNetGUID.getCPtr(endpointGuid)); 81 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 82 | return ret; 83 | } 84 | 85 | public enum Router2RequestStates { 86 | R2RS_REQUEST_STATE_QUERY_FORWARDING, 87 | REQUEST_STATE_REQUEST_FORWARDING 88 | } 89 | 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/Router2DebugInterface.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class Router2DebugInterface : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal Router2DebugInterface(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(Router2DebugInterface obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~Router2DebugInterface() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_Router2DebugInterface(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public Router2DebugInterface() : this(RakNetPINVOKE.new_Router2DebugInterface(), true) { 45 | } 46 | 47 | public virtual void ShowFailure(string message) { 48 | RakNetPINVOKE.Router2DebugInterface_ShowFailure(swigCPtr, message); 49 | } 50 | 51 | public virtual void ShowDiagnostic(string message) { 52 | RakNetPINVOKE.Router2DebugInterface_ShowDiagnostic(swigCPtr, message); 53 | } 54 | 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/Row.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class Row : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal Row(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(Row obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~Row() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_Row(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public RakNetListCellPointer cells { 45 | set { 46 | RakNetPINVOKE.Row_cells_set(swigCPtr, RakNetListCellPointer.getCPtr(value)); 47 | } 48 | get { 49 | IntPtr cPtr = RakNetPINVOKE.Row_cells_get(swigCPtr); 50 | RakNetListCellPointer ret = (cPtr == IntPtr.Zero) ? null : new RakNetListCellPointer(cPtr, false); 51 | return ret; 52 | } 53 | } 54 | 55 | public void UpdateCell(uint columnIndex, double value) { 56 | RakNetPINVOKE.Row_UpdateCell__SWIG_0(swigCPtr, columnIndex, value); 57 | } 58 | 59 | public void UpdateCell(uint columnIndex, string str) { 60 | RakNetPINVOKE.Row_UpdateCell__SWIG_1(swigCPtr, columnIndex, str); 61 | } 62 | 63 | public void UpdateCell(uint columnIndex, int byteLength, byte[] inByteArray) { 64 | RakNetPINVOKE.Row_UpdateCell__SWIG_2(swigCPtr, columnIndex, byteLength, inByteArray); 65 | } 66 | 67 | public Row() : this(RakNetPINVOKE.new_Row(), true) { 68 | } 69 | 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_DataStructures__ListT_RakNetSocket2_p_t obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_DataStructures__ListT_RakNet__BitStream_p_t obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_DataStructures__ListT_RakNet__TM_TeamMember_p_t.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_DataStructures__ListT_RakNet__TM_TeamMember_p_t { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_DataStructures__ListT_RakNet__TM_TeamMember_p_t(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_DataStructures__ListT_RakNet__TM_TeamMember_p_t() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_DataStructures__ListT_RakNet__TM_TeamMember_p_t obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_DataStructures__ListT_RakNet__TM_Team_p_t.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_DataStructures__ListT_RakNet__TM_Team_p_t { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_DataStructures__ListT_RakNet__TM_Team_p_t(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_DataStructures__ListT_RakNet__TM_Team_p_t() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_DataStructures__ListT_RakNet__TM_Team_p_t obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_FILE.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_FILE { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_FILE(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_FILE() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_FILE obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_RNS2RecvStruct.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_RNS2RecvStruct { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_RNS2RecvStruct(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_RNS2RecvStruct() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_RNS2RecvStruct obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_RakNet__NatPunchthroughClient__SendPing obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_RakNet__ReadyEvent__RemoteSystem.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_RakNet__ReadyEvent__RemoteSystem { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_RakNet__ReadyEvent__RemoteSystem(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_RakNet__ReadyEvent__RemoteSystem() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_RakNet__ReadyEvent__RemoteSystem obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_RakNet__TCPInterface.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_RakNet__TCPInterface { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_RakNet__TCPInterface(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_RakNet__TCPInterface() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_RakNet__TCPInterface obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_RakNet__TM_World__JoinRequestHelper.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_RakNet__TM_World__JoinRequestHelper { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_RakNet__TM_World__JoinRequestHelper(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_RakNet__TM_World__JoinRequestHelper() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_RakNet__TM_World__JoinRequestHelper obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_bool.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_bool { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_bool(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_bool() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_bool obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_double.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_double { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_double(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_double() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_double obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_p_RakNet__TM_Team.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_p_RakNet__TM_Team { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_p_RakNet__TM_Team(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_p_RakNet__TM_Team() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_p_RakNet__TM_Team obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_p_RakNet__TM_TeamMember.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_p_RakNet__TM_TeamMember { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_p_RakNet__TM_TeamMember(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_p_RakNet__TM_TeamMember() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_p_RakNet__TM_TeamMember obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_p_RakNet__TM_World.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_p_RakNet__TM_World { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_p_RakNet__TM_World(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_p_RakNet__TM_World() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_p_RakNet__TM_World obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_unsigned_char.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_unsigned_char { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_unsigned_char(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_unsigned_char() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_char obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_unsigned_int.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_unsigned_int { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_unsigned_int(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_unsigned_int() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_unsigned_long_long.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_unsigned_long_long { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_unsigned_long_long(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_unsigned_long_long() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_long_long obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_unsigned_short.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_unsigned_short { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_unsigned_short(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_unsigned_short() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_unsigned_short obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_void.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_void { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_void(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_void() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_void obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SWIGTYPE_p_wchar_t.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SWIGTYPE_p_wchar_t { 15 | private HandleRef swigCPtr; 16 | 17 | internal SWIGTYPE_p_wchar_t(IntPtr cPtr, bool futureUse) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | protected SWIGTYPE_p_wchar_t() { 22 | swigCPtr = new HandleRef(null, IntPtr.Zero); 23 | } 24 | 25 | internal static HandleRef getCPtr(SWIGTYPE_p_wchar_t obj) { 26 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SimpleMutex.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SimpleMutex : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal SimpleMutex(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(SimpleMutex obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~SimpleMutex() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_SimpleMutex(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public SimpleMutex() : this(RakNetPINVOKE.new_SimpleMutex(), true) { 45 | } 46 | 47 | public void Lock() { 48 | RakNetPINVOKE.SimpleMutex_Lock(swigCPtr); 49 | } 50 | 51 | public void Unlock() { 52 | RakNetPINVOKE.SimpleMutex_Unlock(swigCPtr); 53 | } 54 | 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SocketDescriptor.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SocketDescriptor : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal SocketDescriptor(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(SocketDescriptor obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~SocketDescriptor() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_SocketDescriptor(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public SocketDescriptor() : this(RakNetPINVOKE.new_SocketDescriptor__SWIG_0(), true) { 45 | } 46 | 47 | public SocketDescriptor(ushort _port, string _hostAddress) : this(RakNetPINVOKE.new_SocketDescriptor__SWIG_1(_port, _hostAddress), true) { 48 | } 49 | 50 | public ushort port { 51 | set { 52 | RakNetPINVOKE.SocketDescriptor_port_set(swigCPtr, value); 53 | } 54 | get { 55 | ushort ret = RakNetPINVOKE.SocketDescriptor_port_get(swigCPtr); 56 | return ret; 57 | } 58 | } 59 | 60 | public string hostAddress { 61 | set { 62 | RakNetPINVOKE.SocketDescriptor_hostAddress_set(swigCPtr, value); 63 | } 64 | get { 65 | string ret = RakNetPINVOKE.SocketDescriptor_hostAddress_get(swigCPtr); 66 | return ret; 67 | } 68 | } 69 | 70 | public short socketFamily { 71 | set { 72 | RakNetPINVOKE.SocketDescriptor_socketFamily_set(swigCPtr, value); 73 | } 74 | get { 75 | short ret = RakNetPINVOKE.SocketDescriptor_socketFamily_get(swigCPtr); 76 | return ret; 77 | } 78 | } 79 | 80 | public ushort remotePortRakNetWasStartedOn_PS3_PSP2 { 81 | set { 82 | RakNetPINVOKE.SocketDescriptor_remotePortRakNetWasStartedOn_PS3_PSP2_set(swigCPtr, value); 83 | } 84 | get { 85 | ushort ret = RakNetPINVOKE.SocketDescriptor_remotePortRakNetWasStartedOn_PS3_PSP2_get(swigCPtr); 86 | return ret; 87 | } 88 | } 89 | 90 | public int chromeInstance { 91 | set { 92 | RakNetPINVOKE.SocketDescriptor_chromeInstance_set(swigCPtr, value); 93 | } 94 | get { 95 | int ret = RakNetPINVOKE.SocketDescriptor_chromeInstance_get(swigCPtr); 96 | return ret; 97 | } 98 | } 99 | 100 | public bool blockingSocket { 101 | set { 102 | RakNetPINVOKE.SocketDescriptor_blockingSocket_set(swigCPtr, value); 103 | } 104 | get { 105 | bool ret = RakNetPINVOKE.SocketDescriptor_blockingSocket_get(swigCPtr); 106 | return ret; 107 | } 108 | } 109 | 110 | public uint extraSocketOptions { 111 | set { 112 | RakNetPINVOKE.SocketDescriptor_extraSocketOptions_set(swigCPtr, value); 113 | } 114 | get { 115 | uint ret = RakNetPINVOKE.SocketDescriptor_extraSocketOptions_get(swigCPtr); 116 | return ret; 117 | } 118 | } 119 | 120 | } 121 | 122 | } 123 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/SortQuery.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class SortQuery : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal SortQuery(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(SortQuery obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~SortQuery() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_SortQuery(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public uint columnIndex { 45 | set { 46 | RakNetPINVOKE.SortQuery_columnIndex_set(swigCPtr, value); 47 | } 48 | get { 49 | uint ret = RakNetPINVOKE.SortQuery_columnIndex_get(swigCPtr); 50 | return ret; 51 | } 52 | } 53 | 54 | public Table.SortQueryType operation { 55 | set { 56 | RakNetPINVOKE.SortQuery_operation_set(swigCPtr, (int)value); 57 | } 58 | get { 59 | Table.SortQueryType ret = (Table.SortQueryType)RakNetPINVOKE.SortQuery_operation_get(swigCPtr); 60 | return ret; 61 | } 62 | } 63 | 64 | public SortQuery() : this(RakNetPINVOKE.new_SortQuery(), true) { 65 | } 66 | 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/StartupResult.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum StartupResult { 12 | RAKNET_STARTED, 13 | RAKNET_ALREADY_STARTED, 14 | INVALID_SOCKET_DESCRIPTORS, 15 | INVALID_MAX_CONNECTIONS, 16 | SOCKET_FAMILY_NOT_SUPPORTED, 17 | SOCKET_PORT_ALREADY_IN_USE, 18 | SOCKET_FAILED_TO_BIND, 19 | SOCKET_FAILED_TEST_SEND, 20 | PORT_CANNOT_BE_ZERO, 21 | FAILED_TO_CREATE_NETWORK_THREAD, 22 | COULD_NOT_GENERATE_GUID, 23 | STARTUP_OTHER_FAILURE 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/TMTopology.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum TMTopology { 12 | TM_PEER_TO_PEER, 13 | TM_CLIENT_SERVER 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/TM_Team.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class TM_Team : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal TM_Team(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(TM_Team obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~TM_Team() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_TM_Team(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public static TM_Team GetInstance() { 45 | IntPtr cPtr = RakNetPINVOKE.TM_Team_GetInstance(); 46 | TM_Team ret = (cPtr == IntPtr.Zero) ? null : new TM_Team(cPtr, false); 47 | return ret; 48 | } 49 | 50 | public static void DestroyInstance(TM_Team i) { 51 | RakNetPINVOKE.TM_Team_DestroyInstance(TM_Team.getCPtr(i)); 52 | } 53 | 54 | public TM_Team() : this(RakNetPINVOKE.new_TM_Team(), true) { 55 | } 56 | 57 | public bool SetMemberLimit(ushort _teamMemberLimit, byte noTeamSubcategory) { 58 | bool ret = RakNetPINVOKE.TM_Team_SetMemberLimit(swigCPtr, _teamMemberLimit, noTeamSubcategory); 59 | return ret; 60 | } 61 | 62 | public ushort GetMemberLimit() { 63 | ushort ret = RakNetPINVOKE.TM_Team_GetMemberLimit(swigCPtr); 64 | return ret; 65 | } 66 | 67 | public ushort GetMemberLimitSetting() { 68 | ushort ret = RakNetPINVOKE.TM_Team_GetMemberLimitSetting(swigCPtr); 69 | return ret; 70 | } 71 | 72 | public bool SetJoinPermissions(byte _joinPermissions) { 73 | bool ret = RakNetPINVOKE.TM_Team_SetJoinPermissions(swigCPtr, _joinPermissions); 74 | return ret; 75 | } 76 | 77 | public byte GetJoinPermissions() { 78 | byte ret = RakNetPINVOKE.TM_Team_GetJoinPermissions(swigCPtr); 79 | return ret; 80 | } 81 | 82 | public void LeaveTeam(TM_TeamMember teamMember, byte noTeamSubcategory) { 83 | RakNetPINVOKE.TM_Team_LeaveTeam(swigCPtr, TM_TeamMember.getCPtr(teamMember), noTeamSubcategory); 84 | } 85 | 86 | public bool GetBalancingApplies() { 87 | bool ret = RakNetPINVOKE.TM_Team_GetBalancingApplies(swigCPtr); 88 | return ret; 89 | } 90 | 91 | public void GetTeamMembers(SWIGTYPE_p_DataStructures__ListT_RakNet__TM_TeamMember_p_t _teamMembers) { 92 | RakNetPINVOKE.TM_Team_GetTeamMembers(swigCPtr, SWIGTYPE_p_DataStructures__ListT_RakNet__TM_TeamMember_p_t.getCPtr(_teamMembers)); 93 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 94 | } 95 | 96 | public uint GetTeamMembersCount() { 97 | uint ret = RakNetPINVOKE.TM_Team_GetTeamMembersCount(swigCPtr); 98 | return ret; 99 | } 100 | 101 | public TM_TeamMember GetTeamMemberByIndex(uint index) { 102 | IntPtr cPtr = RakNetPINVOKE.TM_Team_GetTeamMemberByIndex(swigCPtr, index); 103 | TM_TeamMember ret = (cPtr == IntPtr.Zero) ? null : new TM_TeamMember(cPtr, false); 104 | return ret; 105 | } 106 | 107 | public ulong GetNetworkID() { 108 | ulong ret = RakNetPINVOKE.TM_Team_GetNetworkID(swigCPtr); 109 | return ret; 110 | } 111 | 112 | public TM_World GetTM_World() { 113 | IntPtr cPtr = RakNetPINVOKE.TM_Team_GetTM_World(swigCPtr); 114 | TM_World ret = (cPtr == IntPtr.Zero) ? null : new TM_World(cPtr, false); 115 | return ret; 116 | } 117 | 118 | public void SerializeConstruction(BitStream constructionBitstream) { 119 | RakNetPINVOKE.TM_Team_SerializeConstruction(swigCPtr, BitStream.getCPtr(constructionBitstream)); 120 | } 121 | 122 | public bool DeserializeConstruction(TeamManager teamManager, BitStream constructionBitstream) { 123 | bool ret = RakNetPINVOKE.TM_Team_DeserializeConstruction(swigCPtr, TeamManager.getCPtr(teamManager), BitStream.getCPtr(constructionBitstream)); 124 | return ret; 125 | } 126 | 127 | public void SetOwner(SWIGTYPE_p_void o) { 128 | RakNetPINVOKE.TM_Team_SetOwner(swigCPtr, SWIGTYPE_p_void.getCPtr(o)); 129 | } 130 | 131 | public SWIGTYPE_p_void GetOwner() { 132 | IntPtr cPtr = RakNetPINVOKE.TM_Team_GetOwner(swigCPtr); 133 | SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); 134 | return ret; 135 | } 136 | 137 | public uint GetWorldIndex() { 138 | uint ret = RakNetPINVOKE.TM_Team_GetWorldIndex(swigCPtr); 139 | return ret; 140 | } 141 | 142 | public static uint ToUint32(ulong g) { 143 | uint ret = RakNetPINVOKE.TM_Team_ToUint32(g); 144 | return ret; 145 | } 146 | 147 | } 148 | 149 | } 150 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/TeamSelection.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class TeamSelection : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal TeamSelection(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(TeamSelection obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~TeamSelection() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_TeamSelection(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public TeamSelection() : this(RakNetPINVOKE.new_TeamSelection__SWIG_0(), true) { 45 | } 46 | 47 | public TeamSelection(JoinTeamType itt) : this(RakNetPINVOKE.new_TeamSelection__SWIG_1((int)itt), true) { 48 | } 49 | 50 | public TeamSelection(JoinTeamType itt, TM_Team param) : this(RakNetPINVOKE.new_TeamSelection__SWIG_2((int)itt, TM_Team.getCPtr(param)), true) { 51 | } 52 | 53 | public TeamSelection(JoinTeamType itt, byte param) : this(RakNetPINVOKE.new_TeamSelection__SWIG_3((int)itt, param), true) { 54 | } 55 | 56 | public JoinTeamType joinTeamType { 57 | set { 58 | RakNetPINVOKE.TeamSelection_joinTeamType_set(swigCPtr, (int)value); 59 | } 60 | get { 61 | JoinTeamType ret = (JoinTeamType)RakNetPINVOKE.TeamSelection_joinTeamType_get(swigCPtr); 62 | return ret; 63 | } 64 | } 65 | 66 | public static TeamSelection AnyAvailable() { 67 | TeamSelection ret = new TeamSelection(RakNetPINVOKE.TeamSelection_AnyAvailable(), true); 68 | return ret; 69 | } 70 | 71 | public static TeamSelection SpecificTeam(TM_Team specificTeamToJoin) { 72 | TeamSelection ret = new TeamSelection(RakNetPINVOKE.TeamSelection_SpecificTeam(TM_Team.getCPtr(specificTeamToJoin)), true); 73 | return ret; 74 | } 75 | 76 | public static TeamSelection NoTeam(byte noTeamSubcategory) { 77 | TeamSelection ret = new TeamSelection(RakNetPINVOKE.TeamSelection_NoTeam(noTeamSubcategory), true); 78 | return ret; 79 | } 80 | 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/ThreadsafePacketLogger.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class ThreadsafePacketLogger : PacketLogger { 15 | private HandleRef swigCPtr; 16 | 17 | internal ThreadsafePacketLogger(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.ThreadsafePacketLogger_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(ThreadsafePacketLogger obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~ThreadsafePacketLogger() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_ThreadsafePacketLogger(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public ThreadsafePacketLogger() : this(RakNetPINVOKE.new_ThreadsafePacketLogger(), true) { 44 | } 45 | 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/TransportInterface.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class TransportInterface : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal TransportInterface(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(TransportInterface obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~TransportInterface() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_TransportInterface(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public virtual bool Start(ushort port, bool serverMode) { 45 | bool ret = RakNetPINVOKE.TransportInterface_Start(swigCPtr, port, serverMode); 46 | return ret; 47 | } 48 | 49 | public virtual void Stop() { 50 | RakNetPINVOKE.TransportInterface_Stop(swigCPtr); 51 | } 52 | 53 | public virtual void CloseConnection(SystemAddress systemAddress) { 54 | RakNetPINVOKE.TransportInterface_CloseConnection(swigCPtr, SystemAddress.getCPtr(systemAddress)); 55 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 56 | } 57 | 58 | public virtual Packet Receive() { 59 | IntPtr cPtr = RakNetPINVOKE.TransportInterface_Receive(swigCPtr); 60 | Packet ret = (cPtr == IntPtr.Zero) ? null : new Packet(cPtr, false); 61 | return ret; 62 | } 63 | 64 | public virtual void DeallocatePacket(Packet packet) { 65 | RakNetPINVOKE.TransportInterface_DeallocatePacket(swigCPtr, Packet.getCPtr(packet)); 66 | } 67 | 68 | public virtual SystemAddress HasNewIncomingConnection() { 69 | SystemAddress ret = new SystemAddress(RakNetPINVOKE.TransportInterface_HasNewIncomingConnection(swigCPtr), true); 70 | return ret; 71 | } 72 | 73 | public virtual SystemAddress HasLostConnection() { 74 | SystemAddress ret = new SystemAddress(RakNetPINVOKE.TransportInterface_HasLostConnection(swigCPtr), true); 75 | return ret; 76 | } 77 | 78 | public virtual CommandParserInterface GetCommandParser() { 79 | IntPtr cPtr = RakNetPINVOKE.TransportInterface_GetCommandParser(swigCPtr); 80 | CommandParserInterface ret = (cPtr == IntPtr.Zero) ? null : new CommandParserInterface(cPtr, false); 81 | return ret; 82 | } 83 | 84 | public void Send(SystemAddress systemAddress, byte[] inByteArray) { 85 | RakNetPINVOKE.TransportInterface_Send(swigCPtr, SystemAddress.getCPtr(systemAddress), inByteArray); 86 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 87 | } 88 | 89 | } 90 | 91 | } 92 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/UDPForwarder.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class UDPForwarder : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal UDPForwarder(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(UDPForwarder obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~UDPForwarder() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_UDPForwarder(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public UDPForwarder() : this(RakNetPINVOKE.new_UDPForwarder(), true) { 45 | } 46 | 47 | public void Startup() { 48 | RakNetPINVOKE.UDPForwarder_Startup(swigCPtr); 49 | } 50 | 51 | public void Shutdown() { 52 | RakNetPINVOKE.UDPForwarder_Shutdown(swigCPtr); 53 | } 54 | 55 | public void SetMaxForwardEntries(ushort maxEntries) { 56 | RakNetPINVOKE.UDPForwarder_SetMaxForwardEntries(swigCPtr, maxEntries); 57 | } 58 | 59 | public int GetMaxForwardEntries() { 60 | int ret = RakNetPINVOKE.UDPForwarder_GetMaxForwardEntries(swigCPtr); 61 | return ret; 62 | } 63 | 64 | public int GetUsedForwardEntries() { 65 | int ret = RakNetPINVOKE.UDPForwarder_GetUsedForwardEntries(swigCPtr); 66 | return ret; 67 | } 68 | 69 | public UDPForwarderResult StartForwarding(SystemAddress source, SystemAddress destination, uint timeoutOnNoDataMS, string forceHostAddress, ushort socketFamily, out ushort forwardingPort, out int forwardingSocket) { 70 | UDPForwarderResult ret = (UDPForwarderResult)RakNetPINVOKE.UDPForwarder_StartForwarding(swigCPtr, SystemAddress.getCPtr(source), SystemAddress.getCPtr(destination), timeoutOnNoDataMS, forceHostAddress, socketFamily, out forwardingPort, out forwardingSocket); 71 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 72 | return ret; 73 | } 74 | 75 | public void StopForwarding(SystemAddress source, SystemAddress destination) { 76 | RakNetPINVOKE.UDPForwarder_StopForwarding(swigCPtr, SystemAddress.getCPtr(source), SystemAddress.getCPtr(destination)); 77 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 78 | } 79 | 80 | } 81 | 82 | } 83 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/UDPForwarderResult.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | public enum UDPForwarderResult { 12 | UDPFORWARDER_FORWARDING_ALREADY_EXISTS, 13 | UDPFORWARDER_NO_SOCKETS, 14 | UDPFORWARDER_BIND_FAILED, 15 | UDPFORWARDER_INVALID_PARAMETERS, 16 | UDPFORWARDER_NOT_RUNNING, 17 | UDPFORWARDER_SUCCESS, 18 | UDPFORWARDER_RESULT_COUNT 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/UDPProxyClient.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class UDPProxyClient : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal UDPProxyClient(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.UDPProxyClient_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(UDPProxyClient obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~UDPProxyClient() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_UDPProxyClient(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static UDPProxyClient GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.UDPProxyClient_GetInstance(); 45 | UDPProxyClient ret = (cPtr == IntPtr.Zero) ? null : new UDPProxyClient(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(UDPProxyClient i) { 50 | RakNetPINVOKE.UDPProxyClient_DestroyInstance(UDPProxyClient.getCPtr(i)); 51 | } 52 | 53 | public UDPProxyClient() : this(RakNetPINVOKE.new_UDPProxyClient(), true) { 54 | } 55 | 56 | public void SetResultHandler(UDPProxyClientResultHandler rh) { 57 | RakNetPINVOKE.UDPProxyClient_SetResultHandler(swigCPtr, UDPProxyClientResultHandler.getCPtr(rh)); 58 | } 59 | 60 | public bool RequestForwarding(SystemAddress proxyCoordinator, SystemAddress sourceAddress, SystemAddress targetAddressAsSeenFromCoordinator, uint timeoutOnNoDataMS, BitStream serverSelectionBitstream) { 61 | bool ret = RakNetPINVOKE.UDPProxyClient_RequestForwarding__SWIG_0(swigCPtr, SystemAddress.getCPtr(proxyCoordinator), SystemAddress.getCPtr(sourceAddress), SystemAddress.getCPtr(targetAddressAsSeenFromCoordinator), timeoutOnNoDataMS, BitStream.getCPtr(serverSelectionBitstream)); 62 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 63 | return ret; 64 | } 65 | 66 | public bool RequestForwarding(SystemAddress proxyCoordinator, SystemAddress sourceAddress, SystemAddress targetAddressAsSeenFromCoordinator, uint timeoutOnNoDataMS) { 67 | bool ret = RakNetPINVOKE.UDPProxyClient_RequestForwarding__SWIG_1(swigCPtr, SystemAddress.getCPtr(proxyCoordinator), SystemAddress.getCPtr(sourceAddress), SystemAddress.getCPtr(targetAddressAsSeenFromCoordinator), timeoutOnNoDataMS); 68 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 69 | return ret; 70 | } 71 | 72 | public bool RequestForwarding(SystemAddress proxyCoordinator, SystemAddress sourceAddress, RakNetGUID targetGuid, uint timeoutOnNoDataMS, BitStream serverSelectionBitstream) { 73 | bool ret = RakNetPINVOKE.UDPProxyClient_RequestForwarding__SWIG_2(swigCPtr, SystemAddress.getCPtr(proxyCoordinator), SystemAddress.getCPtr(sourceAddress), RakNetGUID.getCPtr(targetGuid), timeoutOnNoDataMS, BitStream.getCPtr(serverSelectionBitstream)); 74 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 75 | return ret; 76 | } 77 | 78 | public bool RequestForwarding(SystemAddress proxyCoordinator, SystemAddress sourceAddress, RakNetGUID targetGuid, uint timeoutOnNoDataMS) { 79 | bool ret = RakNetPINVOKE.UDPProxyClient_RequestForwarding__SWIG_3(swigCPtr, SystemAddress.getCPtr(proxyCoordinator), SystemAddress.getCPtr(sourceAddress), RakNetGUID.getCPtr(targetGuid), timeoutOnNoDataMS); 80 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 81 | return ret; 82 | } 83 | 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/UDPProxyCoordinator.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class UDPProxyCoordinator : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal UDPProxyCoordinator(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.UDPProxyCoordinator_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(UDPProxyCoordinator obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~UDPProxyCoordinator() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_UDPProxyCoordinator(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static UDPProxyCoordinator GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.UDPProxyCoordinator_GetInstance(); 45 | UDPProxyCoordinator ret = (cPtr == IntPtr.Zero) ? null : new UDPProxyCoordinator(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(UDPProxyCoordinator i) { 50 | RakNetPINVOKE.UDPProxyCoordinator_DestroyInstance(UDPProxyCoordinator.getCPtr(i)); 51 | } 52 | 53 | public UDPProxyCoordinator() : this(RakNetPINVOKE.new_UDPProxyCoordinator(), true) { 54 | } 55 | 56 | public void SetRemoteLoginPassword(RakString password) { 57 | RakNetPINVOKE.UDPProxyCoordinator_SetRemoteLoginPassword(swigCPtr, RakString.getCPtr(password)); 58 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 59 | } 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/UDPProxyServer.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class UDPProxyServer : PluginInterface2 { 15 | private HandleRef swigCPtr; 16 | 17 | internal UDPProxyServer(IntPtr cPtr, bool cMemoryOwn) : base(RakNetPINVOKE.UDPProxyServer_SWIGUpcast(cPtr), cMemoryOwn) { 18 | swigCPtr = new HandleRef(this, cPtr); 19 | } 20 | 21 | internal static HandleRef getCPtr(UDPProxyServer obj) { 22 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 23 | } 24 | 25 | ~UDPProxyServer() { 26 | Dispose(); 27 | } 28 | 29 | public override void Dispose() { 30 | lock(this) { 31 | if (swigCPtr.Handle != IntPtr.Zero) { 32 | if (swigCMemOwn) { 33 | swigCMemOwn = false; 34 | RakNetPINVOKE.delete_UDPProxyServer(swigCPtr); 35 | } 36 | swigCPtr = new HandleRef(null, IntPtr.Zero); 37 | } 38 | GC.SuppressFinalize(this); 39 | base.Dispose(); 40 | } 41 | } 42 | 43 | public static UDPProxyServer GetInstance() { 44 | IntPtr cPtr = RakNetPINVOKE.UDPProxyServer_GetInstance(); 45 | UDPProxyServer ret = (cPtr == IntPtr.Zero) ? null : new UDPProxyServer(cPtr, false); 46 | return ret; 47 | } 48 | 49 | public static void DestroyInstance(UDPProxyServer i) { 50 | RakNetPINVOKE.UDPProxyServer_DestroyInstance(UDPProxyServer.getCPtr(i)); 51 | } 52 | 53 | public UDPProxyServer() : this(RakNetPINVOKE.new_UDPProxyServer(), true) { 54 | } 55 | 56 | public void SetSocketFamily(ushort _socketFamily) { 57 | RakNetPINVOKE.UDPProxyServer_SetSocketFamily(swigCPtr, _socketFamily); 58 | } 59 | 60 | public void SetResultHandler(UDPProxyServerResultHandler rh) { 61 | RakNetPINVOKE.UDPProxyServer_SetResultHandler(swigCPtr, UDPProxyServerResultHandler.getCPtr(rh)); 62 | } 63 | 64 | public bool LoginToCoordinator(RakString password, SystemAddress coordinatorAddress) { 65 | bool ret = RakNetPINVOKE.UDPProxyServer_LoginToCoordinator(swigCPtr, RakString.getCPtr(password), SystemAddress.getCPtr(coordinatorAddress)); 66 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 67 | return ret; 68 | } 69 | 70 | public void SetServerPublicIP(RakString ip) { 71 | RakNetPINVOKE.UDPProxyServer_SetServerPublicIP(swigCPtr, RakString.getCPtr(ip)); 72 | if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); 73 | } 74 | 75 | public UDPForwarder udpForwarder { 76 | set { 77 | RakNetPINVOKE.UDPProxyServer_udpForwarder_set(swigCPtr, UDPForwarder.getCPtr(value)); 78 | } 79 | get { 80 | IntPtr cPtr = RakNetPINVOKE.UDPProxyServer_udpForwarder_get(swigCPtr); 81 | UDPForwarder ret = (cPtr == IntPtr.Zero) ? null : new UDPForwarder(cPtr, false); 82 | return ret; 83 | } 84 | } 85 | 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/UnsignedIntPointer.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class UnsignedIntPointer : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal UnsignedIntPointer(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(UnsignedIntPointer obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~UnsignedIntPointer() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_UnsignedIntPointer(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public UnsignedIntPointer() : this(RakNetPINVOKE.new_UnsignedIntPointer(), true) { 45 | } 46 | 47 | public void assign(uint value) { 48 | RakNetPINVOKE.UnsignedIntPointer_assign(swigCPtr, value); 49 | } 50 | 51 | public uint value() { 52 | uint ret = RakNetPINVOKE.UnsignedIntPointer_value(swigCPtr); 53 | return ret; 54 | } 55 | 56 | public SWIGTYPE_p_unsigned_int cast() { 57 | IntPtr cPtr = RakNetPINVOKE.UnsignedIntPointer_cast(swigCPtr); 58 | SWIGTYPE_p_unsigned_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false); 59 | return ret; 60 | } 61 | 62 | public static UnsignedIntPointer frompointer(SWIGTYPE_p_unsigned_int t) { 63 | IntPtr cPtr = RakNetPINVOKE.UnsignedIntPointer_frompointer(SWIGTYPE_p_unsigned_int.getCPtr(t)); 64 | UnsignedIntPointer ret = (cPtr == IntPtr.Zero) ? null : new UnsignedIntPointer(cPtr, false); 65 | return ret; 66 | } 67 | 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNet/UnsignedShortPointer.cs: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 2.0.12 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | namespace RakNet { 10 | 11 | using System; 12 | using System.Runtime.InteropServices; 13 | 14 | public class UnsignedShortPointer : IDisposable { 15 | private HandleRef swigCPtr; 16 | protected bool swigCMemOwn; 17 | 18 | internal UnsignedShortPointer(IntPtr cPtr, bool cMemoryOwn) { 19 | swigCMemOwn = cMemoryOwn; 20 | swigCPtr = new HandleRef(this, cPtr); 21 | } 22 | 23 | internal static HandleRef getCPtr(UnsignedShortPointer obj) { 24 | return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 25 | } 26 | 27 | ~UnsignedShortPointer() { 28 | Dispose(); 29 | } 30 | 31 | public virtual void Dispose() { 32 | lock(this) { 33 | if (swigCPtr.Handle != IntPtr.Zero) { 34 | if (swigCMemOwn) { 35 | swigCMemOwn = false; 36 | RakNetPINVOKE.delete_UnsignedShortPointer(swigCPtr); 37 | } 38 | swigCPtr = new HandleRef(null, IntPtr.Zero); 39 | } 40 | GC.SuppressFinalize(this); 41 | } 42 | } 43 | 44 | public UnsignedShortPointer() : this(RakNetPINVOKE.new_UnsignedShortPointer(), true) { 45 | } 46 | 47 | public void assign(ushort value) { 48 | RakNetPINVOKE.UnsignedShortPointer_assign(swigCPtr, value); 49 | } 50 | 51 | public ushort value() { 52 | ushort ret = RakNetPINVOKE.UnsignedShortPointer_value(swigCPtr); 53 | return ret; 54 | } 55 | 56 | public SWIGTYPE_p_unsigned_short cast() { 57 | IntPtr cPtr = RakNetPINVOKE.UnsignedShortPointer_cast(swigCPtr); 58 | SWIGTYPE_p_unsigned_short ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_short(cPtr, false); 59 | return ret; 60 | } 61 | 62 | public static UnsignedShortPointer frompointer(SWIGTYPE_p_unsigned_short t) { 63 | IntPtr cPtr = RakNetPINVOKE.UnsignedShortPointer_frompointer(SWIGTYPE_p_unsigned_short.getCPtr(t)); 64 | UnsignedShortPointer ret = (cPtr == IntPtr.Zero) ? null : new UnsignedShortPointer(cPtr, false); 65 | return ret; 66 | } 67 | 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /RakNetDotNet/RakNetDotNet/RakNetDotNet.shfbproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 6 | Debug 7 | AnyCPU 8 | 2.0 9 | {51944dc9-b416-474b-a99f-cdf2b9e498a2} 10 | 1.9.9.0 11 | 12 | Documentation 13 | Documentation 14 | Documentation 15 | 16 | .NET Framework 4.0 17 | .\Help\ 18 | Documentation 19 | en-US 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/BigPacketTest/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/BigPacketTest/BigPacketTest.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {CAA93742-3FCC-4EC2-89E3-2143352192B1} 8 | Exe 9 | Properties 10 | BigPacketTest 11 | BigPacketTest 12 | v4.5.1 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | ..\Dlls\RakNetDotNet.dll 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | PreserveNewest 56 | 57 | 58 | 59 | 66 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/BigPacketTest/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("BigPacketTest")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BigPacketTest")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("259dc4e9-2608-4008-8e78-2190f08f3c2e")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/BigPacketTest/RakNet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Siroro/RakNet-C-Sharp-binding-project/f7ffdcb771f5ed086691f03fc331049ec0ce9737/RakNetDotNetSamples/BigPacketTest/RakNet.dll -------------------------------------------------------------------------------- /RakNetDotNetSamples/ChatExampleClient/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/ChatExampleClient/ChatExampleClient.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {65D2784C-BBA0-4EE5-A0A2-CA9C09FD96FF} 8 | Exe 9 | Properties 10 | ChatExampleClient 11 | ChatExampleClient 12 | v4.5.1 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | False 37 | ..\Dlls\RakNetDotNet.dll 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | PreserveNewest 57 | 58 | 59 | 60 | 67 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/ChatExampleClient/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ChatExampleClient")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ChatExampleClient")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("dd34446f-42e1-4131-8ac4-7e6640804d55")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/ChatExampleServer/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/ChatExampleServer/ChatExampleServer.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {66D1448E-A629-42B6-BE1F-28DB0B7B8C70} 8 | Exe 9 | Properties 10 | ChatExampleServer 11 | ChatExampleServer 12 | v4.5.1 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | False 37 | ..\Dlls\RakNetDotNet.dll 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | PreserveNewest 57 | 58 | 59 | 60 | 67 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/ChatExampleServer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ChatExampleServer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ChatExampleServer")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("272cebcc-6eec-477a-8f69-84a41ba7d75e")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/Dlls/RakNetDotNet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Siroro/RakNet-C-Sharp-binding-project/f7ffdcb771f5ed086691f03fc331049ec0ce9737/RakNetDotNetSamples/Dlls/RakNetDotNet.dll -------------------------------------------------------------------------------- /RakNetDotNetSamples/Dlls/x64/RakNet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Siroro/RakNet-C-Sharp-binding-project/f7ffdcb771f5ed086691f03fc331049ec0ce9737/RakNetDotNetSamples/Dlls/x64/RakNet.dll -------------------------------------------------------------------------------- /RakNetDotNetSamples/Dlls/x86/RakNet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Siroro/RakNet-C-Sharp-binding-project/f7ffdcb771f5ed086691f03fc331049ec0ce9737/RakNetDotNetSamples/Dlls/x86/RakNet.dll -------------------------------------------------------------------------------- /RakNetDotNetSamples/RakNetDotNetSamples.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChatExampleClient", "ChatExampleClient\ChatExampleClient.csproj", "{65D2784C-BBA0-4EE5-A0A2-CA9C09FD96FF}" 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChatExampleServer", "ChatExampleServer\ChatExampleServer.csproj", "{66D1448E-A629-42B6-BE1F-28DB0B7B8C70}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample", "Sample\Sample.csproj", "{2E53344D-3EF3-40F6-9C5D-861A43AAB76E}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BigPacketTest", "BigPacketTest\BigPacketTest.csproj", "{CAA93742-3FCC-4EC2-89E3-2143352192B1}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {65D2784C-BBA0-4EE5-A0A2-CA9C09FD96FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {65D2784C-BBA0-4EE5-A0A2-CA9C09FD96FF}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {65D2784C-BBA0-4EE5-A0A2-CA9C09FD96FF}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {65D2784C-BBA0-4EE5-A0A2-CA9C09FD96FF}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {66D1448E-A629-42B6-BE1F-28DB0B7B8C70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {66D1448E-A629-42B6-BE1F-28DB0B7B8C70}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {66D1448E-A629-42B6-BE1F-28DB0B7B8C70}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {66D1448E-A629-42B6-BE1F-28DB0B7B8C70}.Release|Any CPU.Build.0 = Release|Any CPU 26 | {2E53344D-3EF3-40F6-9C5D-861A43AAB76E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 | {2E53344D-3EF3-40F6-9C5D-861A43AAB76E}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 | {2E53344D-3EF3-40F6-9C5D-861A43AAB76E}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {2E53344D-3EF3-40F6-9C5D-861A43AAB76E}.Release|Any CPU.Build.0 = Release|Any CPU 30 | {CAA93742-3FCC-4EC2-89E3-2143352192B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 31 | {CAA93742-3FCC-4EC2-89E3-2143352192B1}.Debug|Any CPU.Build.0 = Debug|Any CPU 32 | {CAA93742-3FCC-4EC2-89E3-2143352192B1}.Release|Any CPU.ActiveCfg = Release|Any CPU 33 | {CAA93742-3FCC-4EC2-89E3-2143352192B1}.Release|Any CPU.Build.0 = Release|Any CPU 34 | EndGlobalSection 35 | GlobalSection(SolutionProperties) = preSolution 36 | HideSolutionNode = FALSE 37 | EndGlobalSection 38 | EndGlobal 39 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/RakNetDotNetSamples.v11.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Siroro/RakNet-C-Sharp-binding-project/f7ffdcb771f5ed086691f03fc331049ec0ce9737/RakNetDotNetSamples/RakNetDotNetSamples.v11.suo -------------------------------------------------------------------------------- /RakNetDotNetSamples/Sample/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/Sample/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using RakNet; 7 | namespace RaknetTest2 8 | { 9 | class Program 10 | { 11 | static void Main(string[] args) 12 | { 13 | Packet testPacket; 14 | int loopNumber; 15 | BitStream stringTestSendBitStream = new BitStream(); 16 | BitStream rakStringTestSendBitStream = new BitStream(); 17 | BitStream receiveBitStream = new BitStream(); 18 | String holdingString; 19 | TimeSpan startTimeSpan; 20 | RakString rakStringTest = new RakString(); 21 | 22 | RakPeerInterface testClient = RakPeer.GetInstance(); 23 | 24 | testClient.Startup(1, new SocketDescriptor(60000, "127.0.0.1"), 1); 25 | 26 | RakPeerInterface testServer = RakPeer.GetInstance(); 27 | testServer.Startup(1, new SocketDescriptor(60001, "127.0.0.1"), 1); 28 | testServer.SetMaximumIncomingConnections(1); 29 | 30 | Console.WriteLine("Send and receive loop using BitStream.\nBitStream read done into RakString"); 31 | 32 | testClient.Connect("127.0.0.1", 60001, "", 0); 33 | 34 | String sendString = "The test string"; 35 | stringTestSendBitStream.Write((byte)DefaultMessageIDTypes.ID_USER_PACKET_ENUM); 36 | stringTestSendBitStream.Write(sendString); 37 | 38 | RakString testRakString = new RakString("Test RakString"); 39 | rakStringTestSendBitStream.Write((byte)DefaultMessageIDTypes.ID_USER_PACKET_ENUM); 40 | rakStringTestSendBitStream.Write(testRakString); 41 | 42 | startTimeSpan = (DateTime.UtcNow - new DateTime(1970, 1, 1)); 43 | loopNumber = 0; 44 | 45 | while (startTimeSpan.TotalSeconds + 5 > (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds) 46 | { 47 | testPacket = testServer.Receive(); 48 | if (testPacket != null && testPacket.data[0] == (byte)DefaultMessageIDTypes.ID_USER_PACKET_ENUM) 49 | { 50 | receiveBitStream.Reset(); 51 | receiveBitStream.Write(testPacket.data, testPacket.length); 52 | receiveBitStream.IgnoreBytes(1); 53 | receiveBitStream.Read(rakStringTest); 54 | Console.WriteLine("Loop number: " + loopNumber + "\nData: " + rakStringTest.C_String()); 55 | } 56 | testServer.DeallocatePacket(testPacket); 57 | loopNumber++; 58 | System.Threading.Thread.Sleep(50); 59 | testClient.Send(rakStringTestSendBitStream, PacketPriority.LOW_PRIORITY, PacketReliability.RELIABLE_ORDERED, (char)0, new AddressOrGUID(new SystemAddress("127.0.0.1", 60001)), false); 60 | } 61 | 62 | Console.WriteLine("String send and receive loop using BitStream.\nBitStream read done into String"); 63 | 64 | SystemAddress[] remoteSystems; 65 | ushort numberOfSystems = 1; 66 | testServer.GetConnectionList(out remoteSystems, ref numberOfSystems); 67 | 68 | startTimeSpan = (DateTime.UtcNow - new DateTime(1970, 1, 1)); 69 | loopNumber = 0; 70 | while (startTimeSpan.TotalSeconds + 5 > (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds) 71 | { 72 | testPacket = testServer.Receive(); 73 | if (testPacket != null && testPacket.data[0] == (byte)DefaultMessageIDTypes.ID_USER_PACKET_ENUM) 74 | { 75 | receiveBitStream.Reset(); 76 | receiveBitStream.Write(testPacket.data, testPacket.length); 77 | receiveBitStream.IgnoreBytes(1); 78 | receiveBitStream.Read(out holdingString); 79 | Console.WriteLine("Loop number: " + loopNumber + "\nData: " + holdingString); 80 | } 81 | testServer.DeallocatePacket(testPacket); 82 | loopNumber++; 83 | System.Threading.Thread.Sleep(50); 84 | SystemAddress sa = RakNet.RakNet.UNASSIGNED_SYSTEM_ADDRESS; 85 | testClient.Send(stringTestSendBitStream, PacketPriority.LOW_PRIORITY, PacketReliability.RELIABLE_ORDERED, (char)0, new AddressOrGUID(new SystemAddress("127.0.0.1", 60001)), false); 86 | } 87 | //If RakString is not freed before program exit it will crash 88 | rakStringTest.Dispose(); 89 | testRakString.Dispose(); 90 | 91 | RakPeer.DestroyInstance(testClient); 92 | RakPeer.DestroyInstance(testServer); 93 | Console.WriteLine("Demo complete. Press Enter."); 94 | Console.Read(); 95 | 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/Sample/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Sample")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Sample")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("d62bf1e4-a6dc-4b89-9795-9c4488ded6de")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /RakNetDotNetSamples/Sample/Sample.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {2E53344D-3EF3-40F6-9C5D-861A43AAB76E} 8 | Exe 9 | Properties 10 | Sample 11 | Sample 12 | v4.5.1 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | ..\Dlls\RakNetDotNet.dll 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | PreserveNewest 56 | 57 | 58 | 59 | 66 | --------------------------------------------------------------------------------