blob: 61c4fcb68489e895efa4b917ffb95758298b8bb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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);
}
}
}
|