scripts
This commit is contained in:
@@ -0,0 +1,863 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Sony.NP
|
||||
{
|
||||
// Token: 0x02000096 RID: 150
|
||||
public class NetworkUtils
|
||||
{
|
||||
// Token: 0x06000345 RID: 837
|
||||
[DllImport("UnityNpToolkit2")]
|
||||
private static extern int PrxGetBandwidthInfo(NetworkUtils.GetBandwidthInfoRequest request, out APIResult result);
|
||||
|
||||
// Token: 0x06000346 RID: 838
|
||||
[DllImport("UnityNpToolkit2")]
|
||||
private static extern int PrxGetBasicNetworkInfo(NetworkUtils.GetBasicNetworkInfoRequest request, out APIResult result);
|
||||
|
||||
// Token: 0x06000347 RID: 839
|
||||
[DllImport("UnityNpToolkit2")]
|
||||
private static extern int PrxGetDetailedNetworkInfo(NetworkUtils.GetDetailedNetworkInfoRequest request, out APIResult result);
|
||||
|
||||
// Token: 0x06000348 RID: 840 RVA: 0x0000A37C File Offset: 0x0000937C
|
||||
public static int GetBandwidthInfo(NetworkUtils.GetBandwidthInfoRequest request, NetworkUtils.BandwidthInfoResponse response)
|
||||
{
|
||||
if (response.locked)
|
||||
{
|
||||
throw new NpToolkitException("Response object is already locked");
|
||||
}
|
||||
APIResult apiresult;
|
||||
int num = NetworkUtils.PrxGetBandwidthInfo(request, out apiresult);
|
||||
if (apiresult.RaiseException)
|
||||
{
|
||||
throw new NpToolkitException(apiresult);
|
||||
}
|
||||
RequestBase.FinaliseRequest(request, response, num);
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000349 RID: 841 RVA: 0x0000A3D0 File Offset: 0x000093D0
|
||||
public static int GetBasicNetworkInfoInfo(NetworkUtils.GetBasicNetworkInfoRequest request, NetworkUtils.BasicNetworkInfoResponse response)
|
||||
{
|
||||
if (response.locked)
|
||||
{
|
||||
throw new NpToolkitException("Response object is already locked");
|
||||
}
|
||||
APIResult apiresult;
|
||||
int num = NetworkUtils.PrxGetBasicNetworkInfo(request, out apiresult);
|
||||
if (apiresult.RaiseException)
|
||||
{
|
||||
throw new NpToolkitException(apiresult);
|
||||
}
|
||||
RequestBase.FinaliseRequest(request, response, num);
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600034A RID: 842 RVA: 0x0000A424 File Offset: 0x00009424
|
||||
public static int GetDetailedNetworkInfo(NetworkUtils.GetDetailedNetworkInfoRequest request, NetworkUtils.DetailedNetworkInfoResponse response)
|
||||
{
|
||||
if (response.locked)
|
||||
{
|
||||
throw new NpToolkitException("Response object is already locked");
|
||||
}
|
||||
APIResult apiresult;
|
||||
int num = NetworkUtils.PrxGetDetailedNetworkInfo(request, out apiresult);
|
||||
if (apiresult.RaiseException)
|
||||
{
|
||||
throw new NpToolkitException(apiresult);
|
||||
}
|
||||
RequestBase.FinaliseRequest(request, response, num);
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x02000097 RID: 151
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class GetBandwidthInfoRequest : RequestBase
|
||||
{
|
||||
// Token: 0x0600034C RID: 844 RVA: 0x0000A47F File Offset: 0x0000947F
|
||||
public GetBandwidthInfoRequest()
|
||||
: base(ServiceTypes.NetworkUtils, FunctionTypes.NetworkUtilsGetBandwidthInfo)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x02000098 RID: 152
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class GetBasicNetworkInfoRequest : RequestBase
|
||||
{
|
||||
// Token: 0x0600034D RID: 845 RVA: 0x0000A48D File Offset: 0x0000948D
|
||||
public GetBasicNetworkInfoRequest()
|
||||
: base(ServiceTypes.NetworkUtils, FunctionTypes.NetworkUtilsGetBasicNetworkInfo)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x02000099 RID: 153
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class GetDetailedNetworkInfoRequest : RequestBase
|
||||
{
|
||||
// Token: 0x0600034E RID: 846 RVA: 0x0000A49B File Offset: 0x0000949B
|
||||
public GetDetailedNetworkInfoRequest()
|
||||
: base(ServiceTypes.NetworkUtils, FunctionTypes.NetworkUtilsGetDetailedNetworkInfo)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0200009A RID: 154
|
||||
public enum NetworkConnectionState
|
||||
{
|
||||
// Token: 0x04000267 RID: 615
|
||||
Disconnected,
|
||||
// Token: 0x04000268 RID: 616
|
||||
Connecting,
|
||||
// Token: 0x04000269 RID: 617
|
||||
ObtainingIP,
|
||||
// Token: 0x0400026A RID: 618
|
||||
ObtainedIP
|
||||
}
|
||||
|
||||
// Token: 0x0200009B RID: 155
|
||||
public struct NpBandwidthTestResult
|
||||
{
|
||||
// Token: 0x1700017A RID: 378
|
||||
// (get) Token: 0x0600034F RID: 847 RVA: 0x0000A4AC File Offset: 0x000094AC
|
||||
public double UploadBps
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.uploadBps;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700017B RID: 379
|
||||
// (get) Token: 0x06000350 RID: 848 RVA: 0x0000A4C4 File Offset: 0x000094C4
|
||||
public double DownloadBps
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.downloadBps;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000351 RID: 849 RVA: 0x0000A4DC File Offset: 0x000094DC
|
||||
internal void Read(MemoryBuffer buffer)
|
||||
{
|
||||
this.uploadBps = buffer.ReadDouble();
|
||||
this.downloadBps = buffer.ReadDouble();
|
||||
this.result = buffer.ReadInt32();
|
||||
}
|
||||
|
||||
// Token: 0x06000352 RID: 850 RVA: 0x0000A504 File Offset: 0x00009504
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Concat(new object[] { "Up Bps = ", this.uploadBps, " Down Bps = ", this.downloadBps });
|
||||
}
|
||||
|
||||
// Token: 0x0400026B RID: 619
|
||||
internal double uploadBps;
|
||||
|
||||
// Token: 0x0400026C RID: 620
|
||||
internal double downloadBps;
|
||||
|
||||
// Token: 0x0400026D RID: 621
|
||||
internal int result;
|
||||
}
|
||||
|
||||
// Token: 0x0200009C RID: 156
|
||||
public struct NetInAddr
|
||||
{
|
||||
// Token: 0x1700017C RID: 380
|
||||
// (get) Token: 0x06000353 RID: 851 RVA: 0x0000A550 File Offset: 0x00009550
|
||||
// (set) Token: 0x06000354 RID: 852 RVA: 0x0000A568 File Offset: 0x00009568
|
||||
public uint Addr
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.addr;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.addr = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000355 RID: 853 RVA: 0x0000A572 File Offset: 0x00009572
|
||||
internal void Read(MemoryBuffer buffer)
|
||||
{
|
||||
this.addr = buffer.ReadUInt32();
|
||||
}
|
||||
|
||||
// Token: 0x06000356 RID: 854 RVA: 0x0000A584 File Offset: 0x00009584
|
||||
public override string ToString()
|
||||
{
|
||||
byte[] bytes = BitConverter.GetBytes(this.addr);
|
||||
string text = bytes[0].ToString();
|
||||
for (int i = 1; i < bytes.Length; i++)
|
||||
{
|
||||
text = text + "." + bytes[i].ToString();
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0400026E RID: 622
|
||||
internal uint addr;
|
||||
}
|
||||
|
||||
// Token: 0x0200009D RID: 157
|
||||
public enum RouterNatType
|
||||
{
|
||||
// Token: 0x04000270 RID: 624
|
||||
Type1 = 1,
|
||||
// Token: 0x04000271 RID: 625
|
||||
Type2,
|
||||
// Token: 0x04000272 RID: 626
|
||||
Type3
|
||||
}
|
||||
|
||||
// Token: 0x0200009E RID: 158
|
||||
public enum RouterStun
|
||||
{
|
||||
// Token: 0x04000274 RID: 628
|
||||
Unchecked,
|
||||
// Token: 0x04000275 RID: 629
|
||||
Failed,
|
||||
// Token: 0x04000276 RID: 630
|
||||
OK
|
||||
}
|
||||
|
||||
// Token: 0x0200009F RID: 159
|
||||
public struct NatRouterInfo
|
||||
{
|
||||
// Token: 0x1700017D RID: 381
|
||||
// (get) Token: 0x06000357 RID: 855 RVA: 0x0000A5E0 File Offset: 0x000095E0
|
||||
public NetworkUtils.RouterStun StunStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.stunStatus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700017E RID: 382
|
||||
// (get) Token: 0x06000358 RID: 856 RVA: 0x0000A5F8 File Offset: 0x000095F8
|
||||
public NetworkUtils.RouterNatType NatType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.natType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700017F RID: 383
|
||||
// (get) Token: 0x06000359 RID: 857 RVA: 0x0000A610 File Offset: 0x00009610
|
||||
public NetworkUtils.NetInAddr MappedAddr
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.mappedAddr;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600035A RID: 858 RVA: 0x0000A628 File Offset: 0x00009628
|
||||
internal void Read(MemoryBuffer buffer)
|
||||
{
|
||||
this.stunStatus = (NetworkUtils.RouterStun)buffer.ReadInt32();
|
||||
this.natType = (NetworkUtils.RouterNatType)buffer.ReadInt32();
|
||||
this.mappedAddr.Read(buffer);
|
||||
}
|
||||
|
||||
// Token: 0x0600035B RID: 859 RVA: 0x0000A650 File Offset: 0x00009650
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Concat(new object[]
|
||||
{
|
||||
"Stun Status = ",
|
||||
this.stunStatus,
|
||||
" : Nat Type = ",
|
||||
this.natType,
|
||||
" : Mapped Addr = ",
|
||||
this.mappedAddr.ToString()
|
||||
});
|
||||
}
|
||||
|
||||
// Token: 0x04000277 RID: 631
|
||||
internal NetworkUtils.RouterStun stunStatus;
|
||||
|
||||
// Token: 0x04000278 RID: 632
|
||||
internal NetworkUtils.RouterNatType natType;
|
||||
|
||||
// Token: 0x04000279 RID: 633
|
||||
internal NetworkUtils.NetInAddr mappedAddr;
|
||||
}
|
||||
|
||||
// Token: 0x020000A0 RID: 160
|
||||
public struct NetEtherAddr
|
||||
{
|
||||
// Token: 0x17000180 RID: 384
|
||||
// (get) Token: 0x0600035C RID: 860 RVA: 0x0000A6B8 File Offset: 0x000096B8
|
||||
public byte[] Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.data;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600035D RID: 861 RVA: 0x0000A6D0 File Offset: 0x000096D0
|
||||
internal void Read(MemoryBuffer buffer)
|
||||
{
|
||||
this.data = new byte[6];
|
||||
buffer.ReadData(ref this.data);
|
||||
}
|
||||
|
||||
// Token: 0x0600035E RID: 862 RVA: 0x0000A6EC File Offset: 0x000096EC
|
||||
public override string ToString()
|
||||
{
|
||||
string text;
|
||||
if (this.data == null)
|
||||
{
|
||||
text = "0.0.0.0.0.0";
|
||||
}
|
||||
else
|
||||
{
|
||||
string text2 = this.data[0].ToString();
|
||||
for (int i = 1; i < this.data.Length; i++)
|
||||
{
|
||||
text2 = text2 + "." + this.data[i].ToString();
|
||||
}
|
||||
text = text2;
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0400027A RID: 634
|
||||
public const int SCE_NET_ETHER_ADDR_LEN = 6;
|
||||
|
||||
// Token: 0x0400027B RID: 635
|
||||
internal byte[] data;
|
||||
}
|
||||
|
||||
// Token: 0x020000A1 RID: 161
|
||||
public class BandwidthInfoResponse : ResponseBase
|
||||
{
|
||||
// Token: 0x17000181 RID: 385
|
||||
// (get) Token: 0x0600035F RID: 863 RVA: 0x0000A760 File Offset: 0x00009760
|
||||
public NetworkUtils.NpBandwidthTestResult Bandwidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.bandwidth;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000360 RID: 864 RVA: 0x0000A778 File Offset: 0x00009778
|
||||
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
|
||||
{
|
||||
base.ReadResult(id, apiCalled, request);
|
||||
APIResult apiresult;
|
||||
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
|
||||
if (apiresult.RaiseException)
|
||||
{
|
||||
throw new NpToolkitException(apiresult);
|
||||
}
|
||||
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BandwidthInfoBegin);
|
||||
this.bandwidth.Read(memoryBuffer);
|
||||
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BandwidthInfoEnd);
|
||||
base.EndReadResponseBuffer(memoryBuffer);
|
||||
}
|
||||
|
||||
// Token: 0x0400027C RID: 636
|
||||
internal NetworkUtils.NpBandwidthTestResult bandwidth;
|
||||
}
|
||||
|
||||
// Token: 0x020000A2 RID: 162
|
||||
public class BasicNetworkInfoResponse : ResponseBase
|
||||
{
|
||||
// Token: 0x17000182 RID: 386
|
||||
// (get) Token: 0x06000362 RID: 866 RVA: 0x0000A7E0 File Offset: 0x000097E0
|
||||
public string IpAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ipAddress;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000183 RID: 387
|
||||
// (get) Token: 0x06000363 RID: 867 RVA: 0x0000A7F8 File Offset: 0x000097F8
|
||||
public NetworkUtils.NatRouterInfo NatInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.natInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000184 RID: 388
|
||||
// (get) Token: 0x06000364 RID: 868 RVA: 0x0000A810 File Offset: 0x00009810
|
||||
public NetworkUtils.NetworkConnectionState ConnectionStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.connectionStatus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000365 RID: 869 RVA: 0x0000A828 File Offset: 0x00009828
|
||||
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
|
||||
{
|
||||
base.ReadResult(id, apiCalled, request);
|
||||
APIResult apiresult;
|
||||
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
|
||||
if (apiresult.RaiseException)
|
||||
{
|
||||
throw new NpToolkitException(apiresult);
|
||||
}
|
||||
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateBasicBegin);
|
||||
memoryBuffer.ReadString(ref this.ipAddress);
|
||||
this.natInfo.Read(memoryBuffer);
|
||||
this.connectionStatus = (NetworkUtils.NetworkConnectionState)memoryBuffer.ReadUInt32();
|
||||
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateBasicEnd);
|
||||
base.EndReadResponseBuffer(memoryBuffer);
|
||||
}
|
||||
|
||||
// Token: 0x0400027D RID: 637
|
||||
internal string ipAddress;
|
||||
|
||||
// Token: 0x0400027E RID: 638
|
||||
internal NetworkUtils.NatRouterInfo natInfo;
|
||||
|
||||
// Token: 0x0400027F RID: 639
|
||||
internal NetworkUtils.NetworkConnectionState connectionStatus;
|
||||
}
|
||||
|
||||
// Token: 0x020000A3 RID: 163
|
||||
public enum NetworkDevice
|
||||
{
|
||||
// Token: 0x04000281 RID: 641
|
||||
Wired,
|
||||
// Token: 0x04000282 RID: 642
|
||||
Wireless
|
||||
}
|
||||
|
||||
// Token: 0x020000A4 RID: 164
|
||||
public enum NetworkLink
|
||||
{
|
||||
// Token: 0x04000284 RID: 644
|
||||
Disconnected,
|
||||
// Token: 0x04000285 RID: 645
|
||||
Connected
|
||||
}
|
||||
|
||||
// Token: 0x020000A5 RID: 165
|
||||
public enum WfiSecurity
|
||||
{
|
||||
// Token: 0x04000287 RID: 647
|
||||
NoSecurity,
|
||||
// Token: 0x04000288 RID: 648
|
||||
WEP,
|
||||
// Token: 0x04000289 RID: 649
|
||||
WPAPSK_WPA2PSK,
|
||||
// Token: 0x0400028A RID: 650
|
||||
WPAPSK_TKIP,
|
||||
// Token: 0x0400028B RID: 651
|
||||
WPAPSK_AES,
|
||||
// Token: 0x0400028C RID: 652
|
||||
WPA2PSK_TKIP,
|
||||
// Token: 0x0400028D RID: 653
|
||||
WPA2PSK_AES,
|
||||
// Token: 0x0400028E RID: 654
|
||||
Unsupported
|
||||
}
|
||||
|
||||
// Token: 0x020000A6 RID: 166
|
||||
public enum NetworkIPConfig
|
||||
{
|
||||
// Token: 0x04000290 RID: 656
|
||||
DHCP,
|
||||
// Token: 0x04000291 RID: 657
|
||||
Static,
|
||||
// Token: 0x04000292 RID: 658
|
||||
PPPoE
|
||||
}
|
||||
|
||||
// Token: 0x020000A7 RID: 167
|
||||
public enum NetworkHTTPProxyConfig
|
||||
{
|
||||
// Token: 0x04000294 RID: 660
|
||||
Off,
|
||||
// Token: 0x04000295 RID: 661
|
||||
On
|
||||
}
|
||||
|
||||
// Token: 0x020000A8 RID: 168
|
||||
public class DetailedNetworkInfoResponse : ResponseBase
|
||||
{
|
||||
// Token: 0x17000185 RID: 389
|
||||
// (get) Token: 0x06000367 RID: 871 RVA: 0x0000A8A8 File Offset: 0x000098A8
|
||||
public NetworkUtils.NatRouterInfo NatInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.natInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000186 RID: 390
|
||||
// (get) Token: 0x06000368 RID: 872 RVA: 0x0000A8C0 File Offset: 0x000098C0
|
||||
public NetworkUtils.NetworkConnectionState ConnectionStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.connectionStatus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000187 RID: 391
|
||||
// (get) Token: 0x06000369 RID: 873 RVA: 0x0000A8D8 File Offset: 0x000098D8
|
||||
public NetworkUtils.NetworkDevice Device
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.device;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000188 RID: 392
|
||||
// (get) Token: 0x0600036A RID: 874 RVA: 0x0000A8F0 File Offset: 0x000098F0
|
||||
public NetworkUtils.NetEtherAddr EthernetAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ethernetAddress;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000189 RID: 393
|
||||
// (get) Token: 0x0600036B RID: 875 RVA: 0x0000A908 File Offset: 0x00009908
|
||||
public byte RssiPercentage
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.rssiPercentage;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700018A RID: 394
|
||||
// (get) Token: 0x0600036C RID: 876 RVA: 0x0000A920 File Offset: 0x00009920
|
||||
public byte Channel
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.channel;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700018B RID: 395
|
||||
// (get) Token: 0x0600036D RID: 877 RVA: 0x0000A938 File Offset: 0x00009938
|
||||
public uint MTU
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.mtu;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700018C RID: 396
|
||||
// (get) Token: 0x0600036E RID: 878 RVA: 0x0000A950 File Offset: 0x00009950
|
||||
public NetworkUtils.NetworkLink Link
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.link;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700018D RID: 397
|
||||
// (get) Token: 0x0600036F RID: 879 RVA: 0x0000A968 File Offset: 0x00009968
|
||||
public NetworkUtils.WfiSecurity WifiSecurity
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.wifiSecurity;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700018E RID: 398
|
||||
// (get) Token: 0x06000370 RID: 880 RVA: 0x0000A980 File Offset: 0x00009980
|
||||
public NetworkUtils.NetworkIPConfig IpConfig
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ipConfig;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700018F RID: 399
|
||||
// (get) Token: 0x06000371 RID: 881 RVA: 0x0000A998 File Offset: 0x00009998
|
||||
public NetworkUtils.NetworkHTTPProxyConfig HttpProxyConfig
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.httpProxyConfig;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000190 RID: 400
|
||||
// (get) Token: 0x06000372 RID: 882 RVA: 0x0000A9B0 File Offset: 0x000099B0
|
||||
public ushort HttpProxyPort
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.httpProxyPort;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000191 RID: 401
|
||||
// (get) Token: 0x06000373 RID: 883 RVA: 0x0000A9C8 File Offset: 0x000099C8
|
||||
public NetworkUtils.NetEtherAddr BSSID
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.bssid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000192 RID: 402
|
||||
// (get) Token: 0x06000374 RID: 884 RVA: 0x0000A9E0 File Offset: 0x000099E0
|
||||
public string SSID
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ssid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000193 RID: 403
|
||||
// (get) Token: 0x06000375 RID: 885 RVA: 0x0000A9F8 File Offset: 0x000099F8
|
||||
public string DhcpHostname
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.dhcpHostname;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000194 RID: 404
|
||||
// (get) Token: 0x06000376 RID: 886 RVA: 0x0000AA10 File Offset: 0x00009A10
|
||||
public string PPPoeAuthName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.pppoeAuthName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000195 RID: 405
|
||||
// (get) Token: 0x06000377 RID: 887 RVA: 0x0000AA28 File Offset: 0x00009A28
|
||||
public string IpAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ipAddress;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000196 RID: 406
|
||||
// (get) Token: 0x06000378 RID: 888 RVA: 0x0000AA40 File Offset: 0x00009A40
|
||||
public string Netmask
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.netmask;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000197 RID: 407
|
||||
// (get) Token: 0x06000379 RID: 889 RVA: 0x0000AA58 File Offset: 0x00009A58
|
||||
public string DefaultRoute
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.defaultRoute;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000198 RID: 408
|
||||
// (get) Token: 0x0600037A RID: 890 RVA: 0x0000AA70 File Offset: 0x00009A70
|
||||
public string PrimaryDNS
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.primaryDNS;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000199 RID: 409
|
||||
// (get) Token: 0x0600037B RID: 891 RVA: 0x0000AA88 File Offset: 0x00009A88
|
||||
public string SecondaryDNS
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.secondaryDNS;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700019A RID: 410
|
||||
// (get) Token: 0x0600037C RID: 892 RVA: 0x0000AAA0 File Offset: 0x00009AA0
|
||||
public string HttpProxyServer
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.httpProxyServer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600037D RID: 893 RVA: 0x0000AAB8 File Offset: 0x00009AB8
|
||||
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
|
||||
{
|
||||
base.ReadResult(id, apiCalled, request);
|
||||
APIResult apiresult;
|
||||
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
|
||||
if (apiresult.RaiseException)
|
||||
{
|
||||
throw new NpToolkitException(apiresult);
|
||||
}
|
||||
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateDetailedBegin);
|
||||
this.natInfo.Read(memoryBuffer);
|
||||
this.connectionStatus = (NetworkUtils.NetworkConnectionState)memoryBuffer.ReadUInt32();
|
||||
this.device = (NetworkUtils.NetworkDevice)memoryBuffer.ReadUInt32();
|
||||
this.ethernetAddress.Read(memoryBuffer);
|
||||
this.rssiPercentage = memoryBuffer.ReadUInt8();
|
||||
this.channel = memoryBuffer.ReadUInt8();
|
||||
this.mtu = memoryBuffer.ReadUInt32();
|
||||
this.link = (NetworkUtils.NetworkLink)memoryBuffer.ReadUInt32();
|
||||
this.wifiSecurity = (NetworkUtils.WfiSecurity)memoryBuffer.ReadUInt32();
|
||||
this.ipConfig = (NetworkUtils.NetworkIPConfig)memoryBuffer.ReadUInt32();
|
||||
this.httpProxyConfig = (NetworkUtils.NetworkHTTPProxyConfig)memoryBuffer.ReadUInt32();
|
||||
this.httpProxyPort = memoryBuffer.ReadUInt16();
|
||||
this.bssid.Read(memoryBuffer);
|
||||
memoryBuffer.ReadString(ref this.ssid);
|
||||
memoryBuffer.ReadString(ref this.dhcpHostname);
|
||||
memoryBuffer.ReadString(ref this.pppoeAuthName);
|
||||
memoryBuffer.ReadString(ref this.ipAddress);
|
||||
memoryBuffer.ReadString(ref this.netmask);
|
||||
memoryBuffer.ReadString(ref this.defaultRoute);
|
||||
memoryBuffer.ReadString(ref this.primaryDNS);
|
||||
memoryBuffer.ReadString(ref this.secondaryDNS);
|
||||
memoryBuffer.ReadString(ref this.httpProxyServer);
|
||||
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateDetailedEnd);
|
||||
base.EndReadResponseBuffer(memoryBuffer);
|
||||
}
|
||||
|
||||
// Token: 0x04000296 RID: 662
|
||||
internal NetworkUtils.NatRouterInfo natInfo;
|
||||
|
||||
// Token: 0x04000297 RID: 663
|
||||
internal NetworkUtils.NetworkConnectionState connectionStatus;
|
||||
|
||||
// Token: 0x04000298 RID: 664
|
||||
internal NetworkUtils.NetworkDevice device;
|
||||
|
||||
// Token: 0x04000299 RID: 665
|
||||
internal NetworkUtils.NetEtherAddr ethernetAddress;
|
||||
|
||||
// Token: 0x0400029A RID: 666
|
||||
internal byte rssiPercentage;
|
||||
|
||||
// Token: 0x0400029B RID: 667
|
||||
internal byte channel;
|
||||
|
||||
// Token: 0x0400029C RID: 668
|
||||
internal uint mtu;
|
||||
|
||||
// Token: 0x0400029D RID: 669
|
||||
internal NetworkUtils.NetworkLink link;
|
||||
|
||||
// Token: 0x0400029E RID: 670
|
||||
internal NetworkUtils.WfiSecurity wifiSecurity;
|
||||
|
||||
// Token: 0x0400029F RID: 671
|
||||
internal NetworkUtils.NetworkIPConfig ipConfig;
|
||||
|
||||
// Token: 0x040002A0 RID: 672
|
||||
internal NetworkUtils.NetworkHTTPProxyConfig httpProxyConfig;
|
||||
|
||||
// Token: 0x040002A1 RID: 673
|
||||
internal ushort httpProxyPort;
|
||||
|
||||
// Token: 0x040002A2 RID: 674
|
||||
internal NetworkUtils.NetEtherAddr bssid;
|
||||
|
||||
// Token: 0x040002A3 RID: 675
|
||||
internal string ssid = "";
|
||||
|
||||
// Token: 0x040002A4 RID: 676
|
||||
internal string dhcpHostname = "";
|
||||
|
||||
// Token: 0x040002A5 RID: 677
|
||||
internal string pppoeAuthName = "";
|
||||
|
||||
// Token: 0x040002A6 RID: 678
|
||||
internal string ipAddress = "";
|
||||
|
||||
// Token: 0x040002A7 RID: 679
|
||||
internal string netmask = "";
|
||||
|
||||
// Token: 0x040002A8 RID: 680
|
||||
internal string defaultRoute = "";
|
||||
|
||||
// Token: 0x040002A9 RID: 681
|
||||
internal string primaryDNS = "";
|
||||
|
||||
// Token: 0x040002AA RID: 682
|
||||
internal string secondaryDNS = "";
|
||||
|
||||
// Token: 0x040002AB RID: 683
|
||||
internal string httpProxyServer = "";
|
||||
}
|
||||
|
||||
// Token: 0x020000A9 RID: 169
|
||||
public enum NetworkEvent
|
||||
{
|
||||
// Token: 0x040002AD RID: 685
|
||||
none,
|
||||
// Token: 0x040002AE RID: 686
|
||||
networkConnected,
|
||||
// Token: 0x040002AF RID: 687
|
||||
networkDisconnected
|
||||
}
|
||||
|
||||
// Token: 0x020000AA RID: 170
|
||||
public class NetStateChangeResponse : ResponseBase
|
||||
{
|
||||
// Token: 0x1700019B RID: 411
|
||||
// (get) Token: 0x0600037F RID: 895 RVA: 0x0000AC98 File Offset: 0x00009C98
|
||||
public NetworkUtils.NetworkEvent NetEvent
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.netEvent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000380 RID: 896 RVA: 0x0000ACB0 File Offset: 0x00009CB0
|
||||
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
|
||||
{
|
||||
base.ReadResult(id, apiCalled, request);
|
||||
APIResult apiresult;
|
||||
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
|
||||
if (apiresult.RaiseException)
|
||||
{
|
||||
throw new NpToolkitException(apiresult);
|
||||
}
|
||||
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateChangeBegin);
|
||||
this.netEvent = (NetworkUtils.NetworkEvent)memoryBuffer.ReadInt32();
|
||||
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateChangeEnd);
|
||||
base.EndReadResponseBuffer(memoryBuffer);
|
||||
}
|
||||
|
||||
// Token: 0x040002B0 RID: 688
|
||||
internal NetworkUtils.NetworkEvent netEvent;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user