using System; using Cpp2IlInjected; namespace Steamworks { // Token: 0x02001908 RID: 6408 [Token(Token = "0x2001908")] public static class SteamNetworking { // Token: 0x0600919B RID: 37275 RVA: 0x001DE72C File Offset: 0x001DC92C [Token(Token = "0x600919B")] [Address(RVA = "0x598EB0", Offset = "0x597EB0", VA = "0x180598EB0")] public static bool SendP2PPacket(CSteamID steamIDRemote, byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel = 0) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x0600919C RID: 37276 RVA: 0x001DE74C File Offset: 0x001DC94C [Token(Token = "0x600919C")] [Address(RVA = "0x598C10", Offset = "0x597C10", VA = "0x180598C10")] public static bool IsP2PPacketAvailable(out uint pcubMsgSize, int nChannel = 0) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamNetworking_IsP2PPacketAvailable(CSteamAPIContext.m_pSteamNetworking, out pcubMsgSize, nChannel); } // Token: 0x0600919D RID: 37277 RVA: 0x001DE76C File Offset: 0x001DC96C [Token(Token = "0x600919D")] [Address(RVA = "0x598C70", Offset = "0x597C70", VA = "0x180598C70")] public static bool ReadP2PPacket(byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel = 0) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x0600919E RID: 37278 RVA: 0x001DE788 File Offset: 0x001DC988 [Token(Token = "0x600919E")] [Address(RVA = "0x598550", Offset = "0x597550", VA = "0x180598550")] public static bool AcceptP2PSessionWithUser(CSteamID steamIDRemote) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamNetworking_AcceptP2PSessionWithUser(CSteamAPIContext.m_pSteamNetworking, steamIDRemote); } // Token: 0x0600919F RID: 37279 RVA: 0x001DE7A8 File Offset: 0x001DC9A8 [Token(Token = "0x600919F")] [Address(RVA = "0x598650", Offset = "0x597650", VA = "0x180598650")] public static bool CloseP2PSessionWithUser(CSteamID steamIDRemote) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamNetworking_CloseP2PSessionWithUser(CSteamAPIContext.m_pSteamNetworking, steamIDRemote); } // Token: 0x060091A0 RID: 37280 RVA: 0x001DE7C8 File Offset: 0x001DC9C8 [Token(Token = "0x60091A0")] [Address(RVA = "0x5985F0", Offset = "0x5975F0", VA = "0x1805985F0")] public static bool CloseP2PChannelWithUser(CSteamID steamIDRemote, int nChannel) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamNetworking_CloseP2PChannelWithUser(CSteamAPIContext.m_pSteamNetworking, steamIDRemote, nChannel); } // Token: 0x060091A1 RID: 37281 RVA: 0x001DE7E8 File Offset: 0x001DC9E8 [Token(Token = "0x60091A1")] [Address(RVA = "0x5989F0", Offset = "0x5979F0", VA = "0x1805989F0")] public static bool GetP2PSessionState(CSteamID steamIDRemote, out P2PSessionState_t pConnectionState) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamNetworking_GetP2PSessionState(CSteamAPIContext.m_pSteamNetworking, steamIDRemote, out pConnectionState); } // Token: 0x060091A2 RID: 37282 RVA: 0x001DE808 File Offset: 0x001DCA08 [Token(Token = "0x60091A2")] [Address(RVA = "0x5985A0", Offset = "0x5975A0", VA = "0x1805985A0")] public static bool AllowP2PPacketRelay(bool bAllow) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamNetworking_AllowP2PPacketRelay(CSteamAPIContext.m_pSteamNetworking, bAllow); } // Token: 0x060091A3 RID: 37283 RVA: 0x001DE828 File Offset: 0x001DCA28 [Token(Token = "0x60091A3")] [Address(RVA = "0x598730", Offset = "0x597730", VA = "0x180598730")] public static SNetListenSocket_t CreateListenSocket(int nVirtualP2PPort, SteamIPAddress_t nIP, ushort nPort, bool bAllowUseOfPacketRelay) { /* An exception occurred when decompiling this method (060091A3) ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SNetListenSocket_t Steamworks.SteamNetworking::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::TestIfAvailableClient) 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(CSteamAPIContext::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 1663 */; } // Token: 0x060091A4 RID: 37284 RVA: 0x001DE848 File Offset: 0x001DCA48 [Token(Token = "0x60091A4")] [Address(RVA = "0x5987D0", Offset = "0x5977D0", VA = "0x1805987D0")] public static SNetSocket_t CreateP2PConnectionSocket(CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay) { /* An exception occurred when decompiling this method (060091A4) ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SNetSocket_t Steamworks.SteamNetworking::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::TestIfAvailableClient) stloc:uint32(var_2_15, call:uint32(NativeMethods::ISteamNetworking_CreateP2PConnectionSocket, ldsfld:native int(CSteamAPIContext::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 1663 */; } // Token: 0x060091A5 RID: 37285 RVA: 0x001DE86C File Offset: 0x001DCA6C [Token(Token = "0x60091A5")] [Address(RVA = "0x5986A0", Offset = "0x5976A0", VA = "0x1805986A0")] public static SNetSocket_t CreateConnectionSocket(SteamIPAddress_t nIP, ushort nPort, int nTimeoutSec) { /* An exception occurred when decompiling this method (060091A5) ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SNetSocket_t Steamworks.SteamNetworking::CreateConnectionSocket(Steamworks.SteamIPAddress_t,System.UInt16,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: call:void(InteropHelp::TestIfAvailableClient) 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(CSteamAPIContext::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 1663 */; } // Token: 0x060091A6 RID: 37286 RVA: 0x001DE88C File Offset: 0x001DCA8C [Token(Token = "0x60091A6")] [Address(RVA = "0x5988C0", Offset = "0x5978C0", VA = "0x1805988C0")] public static bool DestroySocket(SNetSocket_t hSocket, bool bNotifyRemoteEnd) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091A7 RID: 37287 RVA: 0x001DE8A8 File Offset: 0x001DCAA8 [Token(Token = "0x60091A7")] [Address(RVA = "0x598860", Offset = "0x597860", VA = "0x180598860")] public static bool DestroyListenSocket(SNetListenSocket_t hSocket, bool bNotifyRemoteEnd) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091A8 RID: 37288 RVA: 0x001DE8C4 File Offset: 0x001DCAC4 [Token(Token = "0x60091A8")] [Address(RVA = "0x598E20", Offset = "0x597E20", VA = "0x180598E20")] public static bool SendDataOnSocket(SNetSocket_t hSocket, byte[] pubData, uint cubData, bool bReliable) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091A9 RID: 37289 RVA: 0x001DE8E0 File Offset: 0x001DCAE0 [Token(Token = "0x60091A9")] [Address(RVA = "0x598B30", Offset = "0x597B30", VA = "0x180598B30")] public static bool IsDataAvailableOnSocket(SNetSocket_t hSocket, out uint pcubMsgSize) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091AA RID: 37290 RVA: 0x001DE8FC File Offset: 0x001DCAFC [Token(Token = "0x60091AA")] [Address(RVA = "0x598D00", Offset = "0x597D00", VA = "0x180598D00")] public static bool RetrieveDataFromSocket(SNetSocket_t hSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091AB RID: 37291 RVA: 0x001DE918 File Offset: 0x001DCB18 [Token(Token = "0x60091AB")] [Address(RVA = "0x598B90", Offset = "0x597B90", VA = "0x180598B90")] public static bool IsDataAvailable(SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091AC RID: 37292 RVA: 0x001DE934 File Offset: 0x001DCB34 [Token(Token = "0x60091AC")] [Address(RVA = "0x598D90", Offset = "0x597D90", VA = "0x180598D90")] public static bool RetrieveData(SNetListenSocket_t hListenSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091AD RID: 37293 RVA: 0x001DE950 File Offset: 0x001DCB50 [Token(Token = "0x60091AD")] [Address(RVA = "0x598AA0", Offset = "0x597AA0", VA = "0x180598AA0")] public static bool GetSocketInfo(SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out SteamIPAddress_t punIPRemote, out ushort punPortRemote) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091AE RID: 37294 RVA: 0x001DE96C File Offset: 0x001DCB6C [Token(Token = "0x60091AE")] [Address(RVA = "0x598920", Offset = "0x597920", VA = "0x180598920")] public static bool GetListenSocketInfo(SNetListenSocket_t hListenSocket, out SteamIPAddress_t pnIP, out ushort pnPort) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; bool flag; return flag; } // Token: 0x060091AF RID: 37295 RVA: 0x001DE988 File Offset: 0x001DCB88 [Token(Token = "0x60091AF")] [Address(RVA = "0x598A50", Offset = "0x597A50", VA = "0x180598A50")] public static ESNetSocketConnectionType GetSocketConnectionType(SNetSocket_t hSocket) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; ESNetSocketConnectionType esnetSocketConnectionType; return esnetSocketConnectionType; } // Token: 0x060091B0 RID: 37296 RVA: 0x001DE9A4 File Offset: 0x001DCBA4 [Token(Token = "0x60091B0")] [Address(RVA = "0x5989A0", Offset = "0x5979A0", VA = "0x1805989A0")] public static int GetMaxPacketSize(SNetSocket_t hSocket) { InteropHelp.TestIfAvailableClient(); IntPtr pSteamNetworking = CSteamAPIContext.m_pSteamNetworking; int num; return num; } } }