summaryrefslogtreecommitdiff
path: root/Assembly_Firstpass/Steamworks/SteamNetConnectionInfo_t.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assembly_Firstpass/Steamworks/SteamNetConnectionInfo_t.cs')
-rw-r--r--Assembly_Firstpass/Steamworks/SteamNetConnectionInfo_t.cs58
1 files changed, 58 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/SteamNetConnectionInfo_t.cs b/Assembly_Firstpass/Steamworks/SteamNetConnectionInfo_t.cs
new file mode 100644
index 0000000..61c4fcb
--- /dev/null
+++ b/Assembly_Firstpass/Steamworks/SteamNetConnectionInfo_t.cs
@@ -0,0 +1,58 @@
+using System.Runtime.InteropServices;
+
+namespace Steamworks;
+
+[StructLayout(LayoutKind.Sequential, Pack = 8)]
+public struct SteamNetConnectionInfo_t
+{
+ public SteamNetworkingIdentity m_identityRemote;
+
+ public long m_nUserData;
+
+ public HSteamListenSocket m_hListenSocket;
+
+ public SteamNetworkingIPAddr m_addrRemote;
+
+ public ushort m__pad1;
+
+ public SteamNetworkingPOPID m_idPOPRemote;
+
+ public SteamNetworkingPOPID m_idPOPRelay;
+
+ public ESteamNetworkingConnectionState m_eState;
+
+ public int m_eEndReason;
+
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
+ private byte[] m_szEndDebug_;
+
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
+ private byte[] m_szConnectionDescription_;
+
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
+ public uint[] reserved;
+
+ public string m_szEndDebug
+ {
+ get
+ {
+ return InteropHelp.ByteArrayToStringUTF8(m_szEndDebug_);
+ }
+ set
+ {
+ InteropHelp.StringToByteArrayUTF8(value, m_szEndDebug_, 128);
+ }
+ }
+
+ public string m_szConnectionDescription
+ {
+ get
+ {
+ return InteropHelp.ByteArrayToStringUTF8(m_szConnectionDescription_);
+ }
+ set
+ {
+ InteropHelp.StringToByteArrayUTF8(value, m_szConnectionDescription_, 128);
+ }
+ }
+}