mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
16 changed files with 784842 additions and 0 deletions
12
Brutal.RakNet/Generated/Classes/AddressOrGUID.gen.cs
Normal file
12
Brutal.RakNet/Generated/Classes/AddressOrGUID.gen.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct AddressOrGUID
|
||||
{
|
||||
public RakNetGUID RakNetGuid;
|
||||
public SystemAddress SystemAddress;
|
||||
}
|
||||
}
|
||||
12
Brutal.RakNet/Generated/Classes/AddressSystemAddress.gen.cs
Normal file
12
Brutal.RakNet/Generated/Classes/AddressSystemAddress.gen.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public partial struct AddressSystemAddress
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public SockaddrIn Addr4;
|
||||
}
|
||||
}
|
||||
11
Brutal.RakNet/Generated/Classes/InAddr.gen.cs
Normal file
11
Brutal.RakNet/Generated/Classes/InAddr.gen.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct InAddr
|
||||
{
|
||||
public SUnInAddr SUn;
|
||||
}
|
||||
}
|
||||
26
Brutal.RakNet/Generated/Classes/Packet.gen.cs
Normal file
26
Brutal.RakNet/Generated/Classes/Packet.gen.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe partial struct Packet
|
||||
{
|
||||
/// <summary>The system that send this packet.</summary>
|
||||
public SystemAddress SystemAddress;
|
||||
|
||||
/// <summary>A unique identifier for the system that sent this packet, regardless of IP address (internal / external / remote system)Only valid once a connection has been established (ID_CONNECTION_REQUEST_ACCEPTED, or ID_NEW_INCOMING_CONNECTION)Until that time, will be UNASSIGNED_RAKNET_GUID</summary>
|
||||
public RakNetGUID Guid;
|
||||
|
||||
/// <summary>The length of the data in bytes</summary>
|
||||
public uint Length;
|
||||
|
||||
/// <summary>The length of the data in bits</summary>
|
||||
public uint BitSize;
|
||||
|
||||
/// <summary>The data from the sender</summary>
|
||||
public byte* Data;
|
||||
public Bool8 DeleteData;
|
||||
public Bool8 WasGeneratedLocally;
|
||||
}
|
||||
}
|
||||
21
Brutal.RakNet/Generated/Classes/PublicKey.gen.cs
Normal file
21
Brutal.RakNet/Generated/Classes/PublicKey.gen.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe partial struct PublicKey
|
||||
{
|
||||
/// <summary>How to interpret the public key, see above</summary>
|
||||
public PublicKeyMode PublicKeyMode;
|
||||
|
||||
/// <summary>Pointer to a public key of length cat::EasyHandshake::PUBLIC_KEY_BYTES. See the Encryption sample.</summary>
|
||||
public byte* RemoteServerPublicKey;
|
||||
|
||||
/// <summary>(Optional) Pointer to a public key of length cat::EasyHandshake::PUBLIC_KEY_BYTES</summary>
|
||||
public byte* MyPublicKey;
|
||||
|
||||
/// <summary>(Optional) Pointer to a private key of length cat::EasyHandshake::PRIVATE_KEY_BYTES</summary>
|
||||
public byte* MyPrivateKey;
|
||||
}
|
||||
}
|
||||
8
Brutal.RakNet/Generated/Classes/RNS2EventHandler.gen.cs
Normal file
8
Brutal.RakNet/Generated/Classes/RNS2EventHandler.gen.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public partial struct RNS2EventHandler { }
|
||||
}
|
||||
15
Brutal.RakNet/Generated/Classes/RakNetGUID.gen.cs
Normal file
15
Brutal.RakNet/Generated/Classes/RakNetGUID.gen.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct RakNetGUID
|
||||
{
|
||||
/// <summary>uint32_t g[6];</summary>
|
||||
public ulong G;
|
||||
|
||||
/// <summary>Used internally for fast lookup. Optional (use -1 to do regular lookup). Don't transmit this.</summary>
|
||||
public ushort SystemIndex;
|
||||
}
|
||||
}
|
||||
12
Brutal.RakNet/Generated/Classes/RakNetLibrary.gen.cs
Normal file
12
Brutal.RakNet/Generated/Classes/RakNetLibrary.gen.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial class RakNetLibrary
|
||||
{
|
||||
[LibraryImport("RakNetDLL", EntryPoint = "CreateInstance")]
|
||||
public static unsafe partial RakPeerInstance CreateInstance();
|
||||
}
|
||||
}
|
||||
21
Brutal.RakNet/Generated/Classes/RakNetSocket2.gen.cs
Normal file
21
Brutal.RakNet/Generated/Classes/RakNetSocket2.gen.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public unsafe partial struct RakNetSocket2
|
||||
{
|
||||
[FieldOffset(8)]
|
||||
public RNS2EventHandler* EventHandler;
|
||||
|
||||
[FieldOffset(16)]
|
||||
public RNS2Type SocketType;
|
||||
|
||||
[FieldOffset(20)]
|
||||
public SystemAddress BoundAddress;
|
||||
|
||||
[FieldOffset(40)]
|
||||
public uint UserConnectionSocketIndex;
|
||||
}
|
||||
}
|
||||
49
Brutal.RakNet/Generated/Classes/RakNetStatistics.gen.cs
Normal file
49
Brutal.RakNet/Generated/Classes/RakNetStatistics.gen.cs
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe partial struct RakNetStatistics
|
||||
{
|
||||
/// <summary>For each type in RNSPerSecondMetrics, what is the value over the last 1 second?</summary>
|
||||
public fixed ulong ValueOverLastSecond[7];
|
||||
|
||||
/// <summary>For each type in RNSPerSecondMetrics, what is the total value over the lifetime of the connection?</summary>
|
||||
public fixed ulong RunningTotal[7];
|
||||
|
||||
/// <summary>When did the connection start?</summary>
|
||||
/// RakNet::GetTimeUS()
|
||||
public ulong ConnectionStartTime;
|
||||
|
||||
/// <summary>Is our current send rate throttled by congestion control?This value should be true if you send more data per second than your bandwidth capacity</summary>
|
||||
public Bool8 IsLimitedByCongestionControl;
|
||||
|
||||
/// <summary>If @a isLimitedByCongestionControl is true, what is the limit, in bytes per second?</summary>
|
||||
public ulong BPSLimitByCongestionControl;
|
||||
|
||||
/// <summary>Is our current send rate throttled by a call to RakPeer::SetPerConnectionOutgoingBandwidthLimit()?</summary>
|
||||
public Bool8 IsLimitedByOutgoingBandwidthLimit;
|
||||
|
||||
/// <summary>If @a isLimitedByOutgoingBandwidthLimit is true, what is the limit, in bytes per second?</summary>
|
||||
public ulong BPSLimitByOutgoingBandwidthLimit;
|
||||
|
||||
/// <summary>For each priority level, how many messages are waiting to be sent out?</summary>
|
||||
public fixed uint MessageInSendBuffer[4];
|
||||
|
||||
/// <summary>For each priority level, how many bytes are waiting to be sent out?</summary>
|
||||
public fixed double BytesInSendBuffer[4];
|
||||
|
||||
/// <summary>How many messages are waiting in the resend buffer? This includes messages waiting for an ack, so should normally be a small valueIf the value is rising over time, you are exceeding the bandwidth capacity. See BPSLimitByCongestionControl</summary>
|
||||
public uint MessagesInResendBuffer;
|
||||
|
||||
/// <summary>How many bytes are waiting in the resend buffer. See also messagesInResendBuffer</summary>
|
||||
public ulong BytesInResendBuffer;
|
||||
|
||||
/// <summary>Over the last second, what was our packetloss? This number will range from 0.0 (for none) to 1.0 (for 100%)</summary>
|
||||
public float PacketlossLastSecond;
|
||||
|
||||
/// <summary>What is the average total packetloss over the lifetime of the connection?</summary>
|
||||
public float PacketlossTotal;
|
||||
}
|
||||
}
|
||||
21
Brutal.RakNet/Generated/Classes/SUnBSUnInAddr.gen.cs
Normal file
21
Brutal.RakNet/Generated/Classes/SUnBSUnInAddr.gen.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public partial struct SUnBSUnInAddr
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public byte SB1;
|
||||
|
||||
[FieldOffset(1)]
|
||||
public byte SB2;
|
||||
|
||||
[FieldOffset(2)]
|
||||
public byte SB3;
|
||||
|
||||
[FieldOffset(3)]
|
||||
public byte SB4;
|
||||
}
|
||||
}
|
||||
18
Brutal.RakNet/Generated/Classes/SUnInAddr.gen.cs
Normal file
18
Brutal.RakNet/Generated/Classes/SUnInAddr.gen.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public partial struct SUnInAddr
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public SUnBSUnInAddr SUnB;
|
||||
|
||||
[FieldOffset(0)]
|
||||
public SUnWSUnInAddr SUnW;
|
||||
|
||||
[FieldOffset(0)]
|
||||
public uint SAddr;
|
||||
}
|
||||
}
|
||||
15
Brutal.RakNet/Generated/Classes/SUnWSUnInAddr.gen.cs
Normal file
15
Brutal.RakNet/Generated/Classes/SUnWSUnInAddr.gen.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public partial struct SUnWSUnInAddr
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public ushort SW1;
|
||||
|
||||
[FieldOffset(2)]
|
||||
public ushort SW2;
|
||||
}
|
||||
}
|
||||
21
Brutal.RakNet/Generated/Classes/SockaddrIn.gen.cs
Normal file
21
Brutal.RakNet/Generated/Classes/SockaddrIn.gen.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public unsafe partial struct SockaddrIn
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
private ushort SinFamilyNonBsd;
|
||||
|
||||
[FieldOffset(2)]
|
||||
public ushort SinPort;
|
||||
|
||||
[FieldOffset(4)]
|
||||
public InAddr SinAddr;
|
||||
|
||||
[FieldOffset(8)]
|
||||
public fixed byte SinZero[8];
|
||||
}
|
||||
}
|
||||
29
Brutal.RakNet/Generated/Classes/SocketDescriptor.gen.cs
Normal file
29
Brutal.RakNet/Generated/Classes/SocketDescriptor.gen.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe partial struct SocketDescriptor
|
||||
{
|
||||
/// <summary>The local port to bind to. Pass 0 to have the OS autoassign a port.</summary>
|
||||
public ushort Port;
|
||||
|
||||
/// <summary>The local network card address to bind to, such as "127.0.0.1". Pass an empty string to use INADDR_ANY.</summary>
|
||||
public fixed byte HostAddress[32];
|
||||
|
||||
/// <summary>IP version: For IPV4, use AF_INET (default). For IPV6, use AF_INET6. To autoselect, use AF_UNSPEC.IPV6 is the newer internet protocol. Instead of addresses such as natpunch.jenkinssoftware.com, you may have an address such as fe80::7c:31f7:fec4:27de%14.Encoding takes 16 bytes instead of 4, so IPV6 is less efficient for bandwidth.On the positive side, NAT Punchthrough is not needed and should not be used with IPV6 because there are enough addresses that routers do not need to create address mappings.RakPeer::Startup() will fail if this IP version is not supported.</summary>
|
||||
/// <remarks>RAKNET_SUPPORT_IPV6 must be set to 1 in RakNetDefines.h for AF_INET6</remarks>
|
||||
public short SocketFamily;
|
||||
public ushort RemotePortRakNetWasStartedOnPS3PSP2;
|
||||
|
||||
/// <summary>Required for Google chrome</summary>
|
||||
public int ChromeInstance;
|
||||
|
||||
/// <summary>Set to true to use a blocking socket (default, do not change unless you have a reason to)</summary>
|
||||
public Bool8 BlockingSocket;
|
||||
|
||||
/// <summary>XBOX only: set IPPROTO_VDP if you want to use VDP. If enabled, this socket does not support broadcast to 255.255.255.255</summary>
|
||||
public uint ExtraSocketOptions;
|
||||
}
|
||||
}
|
||||
15
Brutal.RakNet/Generated/Classes/SystemAddress.gen.cs
Normal file
15
Brutal.RakNet/Generated/Classes/SystemAddress.gen.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Brutal.RakNetApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct SystemAddress
|
||||
{
|
||||
public AddressSystemAddress Address;
|
||||
|
||||
/// <summary>This is not used internally, but holds a copy of the port held in the address union, so for debugging it's easier to check what port is being held</summary>
|
||||
public ushort DebugPort;
|
||||
public ushort SystemIndex;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue