using System; using Cpp2IlInjected; namespace Steamworks { // Token: 0x0200181A RID: 6170 [Token(Token = "0x200181A")] public static class SteamGameServerNetworking { // Token: 0x06008C3D RID: 35901 RVA: 0x001D1AB4 File Offset: 0x001CFCB4 [Token(Token = "0x6008C3D")] [Address(RVA = "0x2DC66D0", Offset = "0x2DC54D0", VA = "0x182DC66D0")] public static bool SendP2PPacket(CSteamID steamIDRemote, byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel = 0) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C3E RID: 35902 RVA: 0x001D1AD4 File Offset: 0x001CFCD4 [Token(Token = "0x6008C3E")] [Address(RVA = "0x2DC6430", Offset = "0x2DC5230", VA = "0x182DC6430")] public static bool IsP2PPacketAvailable(out uint pcubMsgSize, int nChannel = 0) { InteropHelp.TestIfAvailableGameServer(); return NativeMethods.ISteamNetworking_IsP2PPacketAvailable(CSteamGameServerAPIContext.m_pSteamNetworking, out pcubMsgSize, nChannel); } // Token: 0x06008C3F RID: 35903 RVA: 0x001D1AF4 File Offset: 0x001CFCF4 [Token(Token = "0x6008C3F")] [Address(RVA = "0x2DC6490", Offset = "0x2DC5290", VA = "0x182DC6490")] public static bool ReadP2PPacket(byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel = 0) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C40 RID: 35904 RVA: 0x001D1B10 File Offset: 0x001CFD10 [Token(Token = "0x6008C40")] [Address(RVA = "0x2DC5D70", Offset = "0x2DC4B70", VA = "0x182DC5D70")] public static bool AcceptP2PSessionWithUser(CSteamID steamIDRemote) { InteropHelp.TestIfAvailableGameServer(); return NativeMethods.ISteamNetworking_AcceptP2PSessionWithUser(CSteamGameServerAPIContext.m_pSteamNetworking, steamIDRemote); } // Token: 0x06008C41 RID: 35905 RVA: 0x001D1B30 File Offset: 0x001CFD30 [Token(Token = "0x6008C41")] [Address(RVA = "0x2DC5E70", Offset = "0x2DC4C70", VA = "0x182DC5E70")] public static bool CloseP2PSessionWithUser(CSteamID steamIDRemote) { InteropHelp.TestIfAvailableGameServer(); return NativeMethods.ISteamNetworking_CloseP2PSessionWithUser(CSteamGameServerAPIContext.m_pSteamNetworking, steamIDRemote); } // Token: 0x06008C42 RID: 35906 RVA: 0x001D1B50 File Offset: 0x001CFD50 [Token(Token = "0x6008C42")] [Address(RVA = "0x2DC5E10", Offset = "0x2DC4C10", VA = "0x182DC5E10")] public static bool CloseP2PChannelWithUser(CSteamID steamIDRemote, int nChannel) { InteropHelp.TestIfAvailableGameServer(); return NativeMethods.ISteamNetworking_CloseP2PChannelWithUser(CSteamGameServerAPIContext.m_pSteamNetworking, steamIDRemote, nChannel); } // Token: 0x06008C43 RID: 35907 RVA: 0x001D1B70 File Offset: 0x001CFD70 [Token(Token = "0x6008C43")] [Address(RVA = "0x2DC6210", Offset = "0x2DC5010", VA = "0x182DC6210")] public static bool GetP2PSessionState(CSteamID steamIDRemote, out P2PSessionState_t pConnectionState) { InteropHelp.TestIfAvailableGameServer(); return NativeMethods.ISteamNetworking_GetP2PSessionState(CSteamGameServerAPIContext.m_pSteamNetworking, steamIDRemote, out pConnectionState); } // Token: 0x06008C44 RID: 35908 RVA: 0x001D1B90 File Offset: 0x001CFD90 [Token(Token = "0x6008C44")] [Address(RVA = "0x2DC5DC0", Offset = "0x2DC4BC0", VA = "0x182DC5DC0")] public static bool AllowP2PPacketRelay(bool bAllow) { InteropHelp.TestIfAvailableGameServer(); return NativeMethods.ISteamNetworking_AllowP2PPacketRelay(CSteamGameServerAPIContext.m_pSteamNetworking, bAllow); } // Token: 0x06008C45 RID: 35909 RVA: 0x001D1BB0 File Offset: 0x001CFDB0 [Token(Token = "0x6008C45")] [Address(RVA = "0x2DC5F50", Offset = "0x2DC4D50", VA = "0x182DC5F50")] public static SNetListenSocket_t CreateListenSocket(int nVirtualP2PPort, SteamIPAddress_t nIP, ushort nPort, bool bAllowUseOfPacketRelay) { /* An exception occurred when decompiling this method (06008C45) ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SNetListenSocket_t Steamworks.SteamGameServerNetworking::CreateListenSocket(System.Int32,Steamworks.SteamIPAddress_t,System.UInt16,System.Boolean) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: call:void(InteropHelp::TestIfAvailableGameServer) stloc:ESteamIPType(var_2_0D, ldfld:ESteamIPType(SteamIPAddress_t::m_eType, ldloc:SteamIPAddress_t[exp:valuetype Steamworks.SteamIPAddress_t&](nIP))) stloc:native int(var_3_13, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamNetworking)) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1660 */; } // Token: 0x06008C46 RID: 35910 RVA: 0x001D1BD0 File Offset: 0x001CFDD0 [Token(Token = "0x6008C46")] [Address(RVA = "0x2DC5FF0", Offset = "0x2DC4DF0", VA = "0x182DC5FF0")] public static SNetSocket_t CreateP2PConnectionSocket(CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay) { /* An exception occurred when decompiling this method (06008C46) ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SNetSocket_t Steamworks.SteamGameServerNetworking::CreateP2PConnectionSocket(Steamworks.CSteamID,System.Int32,System.Int32,System.Boolean) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: call:void(InteropHelp::TestIfAvailableGameServer) stloc:uint32(var_2_15, call:uint32(NativeMethods::ISteamNetworking_CreateP2PConnectionSocket, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamNetworking), ldloc:CSteamID(steamIDTarget), ldloc:int32(nTimeoutSec), ldloc:int32(nTimeoutSec), ldloc:bool(bAllowUseOfPacketRelay))) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1660 */; } // Token: 0x06008C47 RID: 35911 RVA: 0x001D1BF4 File Offset: 0x001CFDF4 [Token(Token = "0x6008C47")] [Address(RVA = "0x2DC5EC0", Offset = "0x2DC4CC0", VA = "0x182DC5EC0")] public static SNetSocket_t CreateConnectionSocket(SteamIPAddress_t nIP, ushort nPort, int nTimeoutSec) { /* An exception occurred when decompiling this method (06008C47) ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SNetSocket_t Steamworks.SteamGameServerNetworking::CreateConnectionSocket(Steamworks.SteamIPAddress_t,System.UInt16,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: call:void(InteropHelp::TestIfAvailableGameServer) stloc:ESteamIPType(var_2_0D, ldfld:ESteamIPType(SteamIPAddress_t::m_eType, ldloc:SteamIPAddress_t[exp:valuetype Steamworks.SteamIPAddress_t&](nIP))) stloc:native int(var_3_13, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamNetworking)) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1660 */; } // Token: 0x06008C48 RID: 35912 RVA: 0x001D1C14 File Offset: 0x001CFE14 [Token(Token = "0x6008C48")] [Address(RVA = "0x2DC60E0", Offset = "0x2DC4EE0", VA = "0x182DC60E0")] public static bool DestroySocket(SNetSocket_t hSocket, bool bNotifyRemoteEnd) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C49 RID: 35913 RVA: 0x001D1C30 File Offset: 0x001CFE30 [Token(Token = "0x6008C49")] [Address(RVA = "0x2DC6080", Offset = "0x2DC4E80", VA = "0x182DC6080")] public static bool DestroyListenSocket(SNetListenSocket_t hSocket, bool bNotifyRemoteEnd) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C4A RID: 35914 RVA: 0x001D1C4C File Offset: 0x001CFE4C [Token(Token = "0x6008C4A")] [Address(RVA = "0x2DC6640", Offset = "0x2DC5440", VA = "0x182DC6640")] public static bool SendDataOnSocket(SNetSocket_t hSocket, byte[] pubData, uint cubData, bool bReliable) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C4B RID: 35915 RVA: 0x001D1C68 File Offset: 0x001CFE68 [Token(Token = "0x6008C4B")] [Address(RVA = "0x2DC6350", Offset = "0x2DC5150", VA = "0x182DC6350")] public static bool IsDataAvailableOnSocket(SNetSocket_t hSocket, out uint pcubMsgSize) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C4C RID: 35916 RVA: 0x001D1C84 File Offset: 0x001CFE84 [Token(Token = "0x6008C4C")] [Address(RVA = "0x2DC6520", Offset = "0x2DC5320", VA = "0x182DC6520")] public static bool RetrieveDataFromSocket(SNetSocket_t hSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C4D RID: 35917 RVA: 0x001D1CA0 File Offset: 0x001CFEA0 [Token(Token = "0x6008C4D")] [Address(RVA = "0x2DC63B0", Offset = "0x2DC51B0", VA = "0x182DC63B0")] public static bool IsDataAvailable(SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C4E RID: 35918 RVA: 0x001D1CBC File Offset: 0x001CFEBC [Token(Token = "0x6008C4E")] [Address(RVA = "0x2DC65B0", Offset = "0x2DC53B0", VA = "0x182DC65B0")] public static bool RetrieveData(SNetListenSocket_t hListenSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C4F RID: 35919 RVA: 0x001D1CD8 File Offset: 0x001CFED8 [Token(Token = "0x6008C4F")] [Address(RVA = "0x2DC62C0", Offset = "0x2DC50C0", VA = "0x182DC62C0")] public static bool GetSocketInfo(SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out SteamIPAddress_t punIPRemote, out ushort punPortRemote) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C50 RID: 35920 RVA: 0x001D1CF4 File Offset: 0x001CFEF4 [Token(Token = "0x6008C50")] [Address(RVA = "0x2DC6140", Offset = "0x2DC4F40", VA = "0x182DC6140")] public static bool GetListenSocketInfo(SNetListenSocket_t hListenSocket, out SteamIPAddress_t pnIP, out ushort pnPort) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x06008C51 RID: 35921 RVA: 0x001D1D10 File Offset: 0x001CFF10 [Token(Token = "0x6008C51")] [Address(RVA = "0x2DC6270", Offset = "0x2DC5070", VA = "0x182DC6270")] public static ESNetSocketConnectionType GetSocketConnectionType(SNetSocket_t hSocket) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; ESNetSocketConnectionType esnetSocketConnectionType; return esnetSocketConnectionType; } // Token: 0x06008C52 RID: 35922 RVA: 0x001D1D2C File Offset: 0x001CFF2C [Token(Token = "0x6008C52")] [Address(RVA = "0x2DC61C0", Offset = "0x2DC4FC0", VA = "0x182DC61C0")] public static int GetMaxPacketSize(SNetSocket_t hSocket) { InteropHelp.TestIfAvailableGameServer(); IntPtr pSteamNetworking = CSteamGameServerAPIContext.m_pSteamNetworking; int num; return num; } } }