mechanism of CheckUser

Forum Home Forums Development and Integration mechanism of CheckUser

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4894
    linkangsun
    Participant

    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.
    #4896
    Mikhail
    Moderator

    Hello,

    See the Comm class.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.