Пример #1
0
    public byte[] key = new byte[yw.YwEncrypt.LIMIT_KEY_LENGTH];    //加解密key

    public EncryptInfo(NetSocket.ByteArray bin)
    {
        // 跳过两个字节
        bin.Move(NetSocket.CSocketManager.headerLen);

        bin.Get_(out param);
        for (uint i = 0; i < yw.YwEncrypt.LIMIT_KEY_LENGTH; ++i)
        {
            bin.Get_(out key [i]);
        }
    }
Пример #2
0
    public string data;     // = new byte[(int)twp.app.EDef.LIMIT_LOGIN_DATA_LENGTH];

    public RepLoginInfo(NetSocket.ByteArray bin)
    {
        bin.Move(NetSocket.CSocketManager.headerLen);

        int login_result_;

        bin.Get_(out login_result_);
        login_result = (twp.protocol.login.LoginResult)login_result_;

        int login_type_;

        bin.Get_(out login_type_);
        login_type = (twp.protocol.login.LoginType)login_type_;

        bin.Get_(out data_len);

        data = bin.GetStringData((int)data_len);
    }