예제 #1
0
        protected virtual void OnMetaReceived()
        {
            // Parse metadata
            metareceived = true;
            RDTResponse res = (RDTResponse)buffer[0];

            filesize = Helper.B2I(buffer, 1);
            SendACK(0);
            Message("Metadata received. " + (res == RDTResponse.Accepted ? "FileSize=" + filesize : res.ToString()), MType.Important);
            if (res != RDTResponse.Accepted || filesize == 0)
            {
                OnFinished();
            }
        }