, , , WireShark, , rconTool, Black Ops.
:
"status" , .
teamstatus, , .
, , , :
:
byte[] bufferRec = new byte[65000];
client.Receive(bufferRec);
:
byte[] bufferRec;
while (client.Available == 0)
{
Thread.Sleep(10);
}
client.Receive(bufferRec);
string response=Encoding.ASCII.GetString(bufferRec);
var list= response.Split('\n');
, , .
Btw: , ,
: oups, , teamstatus.
. , 1168 , , client.Avalaible > 1168, , client.receive.
In fact, there are only two possible numbers for the client. Available: 1168 and 2336 (yes, dual). I don’t know why, but they were not able to send the exact amount of data, the buffer is always full or empty.
I also noticed that the second trick () is like "pasting" into the first buffer.
You will have the opportunity to get additional information about the first Receive (), then about the "noise" of the old.
Just take a look, you will see what I mean.
I'm at work now, but tonight I will send my code to help.
source
share