Link to home
Start Free TrialLog in
Avatar of davito93
davito93Flag for Canada

asked on

Getting Upload Speed of FTP Upload C#

Im trying to get the upload speed from my client to server.
try
                        {
                            Stream strm = ftp.GetRequestStream();
                            content = fs.Read(buff, 0, bufflength);
                            
                            while (content != 0)
                            {
                                strm.Write(buff, 0, content);
                                transfered += content;
                                progressBar1.Value = transfered;
                                
                                content = fs.Read(buff, 0, bufflength);
                                
                            }
                            strm.Close();
                            fs.Close();
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of MogalManic
MogalManic
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial