Dear Mikhail,
In ScadaData.Client.ServerComm.cs,there is a method,public bool CheckUser(string username, string password, out int roleID)
{
……
netStream.Write(buf, 0, buf.Length);
// приём результата
buf = new byte[4];
int bytesRead = netStream.Read(buf, 0, 4);
// обработка полученных данных
if (bytesRead == buf.Length && CheckDataFormat(buf, 0x01))
{
roleID = buf[3];
result = true;
commState = CommStates.Authorized;
}
……
}
After netStream.wirte is done, there must exists code in server,which deals with what comes from Networkstream,and generate what will be written to NetWorkStream for netStream.read.I want to know where to find the code, in which folder,which file…
-
This topic was modified 5 years, 3 months ago by Mikhail.