I have tried measuring time for socket send time:
stopWatch.Start();
socket.Send(buffer);
socket.Close();
stopWatch.Stop();
But ~95% of the times, stopwatch returns time that is <1second (with 5mb and bigger buffer).
After running socket.send()
within .5-1 milliseconds is says that file was send, even thou user is still downloading. How could I change my code so correct upload time will be returned?
Thank you.
I just realized that Marc might be indeed correct. Of course your code is not enough to provide any guidence one way or another.