|
2 | 2 | using System.Collections.Generic;
|
3 | 3 | using System.Linq;
|
4 | 4 | using System.Text;
|
5 |
| -using System.Threading.Tasks; |
6 | 5 | using System.Timers;
|
7 | 6 |
|
8 | 7 | namespace MCQuery
|
9 | 8 | {
|
10 |
| - public class Query : Connection |
| 9 | + public class Query : Connection |
11 | 10 | {
|
12 | 11 | //Byte[] - Magic Number
|
13 | 12 | private readonly byte[] _magic = { 0xFE, 0xFD };
|
@@ -98,7 +97,7 @@ private byte[] GetFullStat(string address, int port)
|
98 | 97 |
|
99 | 98 | public Server GetBasicServerInfo()
|
100 | 99 | {
|
101 |
| - byte[] responseData = GetBasicStat(_address, _port); |
| 100 | + byte[] responseData = GetBasicStat(base.Address, base.Port); |
102 | 101 |
|
103 | 102 | if (responseData.Length != 0)
|
104 | 103 | {
|
@@ -139,7 +138,7 @@ public Server GetBasicServerInfo()
|
139 | 138 |
|
140 | 139 | public Server GetFullServerInfo()
|
141 | 140 | {
|
142 |
| - byte[] responseData = GetFullStat(_address, _port); |
| 141 | + byte[] responseData = GetFullStat(base.Address, base.Port); |
143 | 142 |
|
144 | 143 | if (responseData.Length != 0)
|
145 | 144 | {
|
@@ -223,7 +222,7 @@ private byte[] GetChallengeToken(byte[] message)
|
223 | 222 | private void RegenerateChallengeToken(Object sender, ElapsedEventArgs e)
|
224 | 223 | {
|
225 | 224 | //Run handshake again to obtain new challenge token.
|
226 |
| - Handshake(_address, _port); |
| 225 | + Handshake(base.Address, base.Port); |
227 | 226 | }
|
228 | 227 |
|
229 | 228 | public override bool IsConnected => _challengeToken != null || _challengeToken.Length > 0;
|
|
0 commit comments