09-21-2012 06:07 AM
Hello All,
Can you please tell me the following
1. In TCP how to implement the progress bar ?
2. How to check that network connection is lost in between the communication i.e inbetween TCP read operation ?
3. How to read the number of bytes read so far in the TCP communication ?
09-21-2012 06:29 AM
09-21-2012 07:07 AM - edited 09-21-2012 07:12 AM
Do you have solution ?
09-21-2012 09:45 AM
@Ranjeet_Singh wrote:
Hello All,
Can you please tell me the following
1. In TCP how to implement the progress bar ?
2. How to check that network connection is lost in between the communication i.e inbetween TCP read operation ?
3. How to read the number of bytes read so far in the TCP communication ?
I answered question 2 in your other thread.
You shuold be able to find examples for progress bars in the shipping examples. You will basically need to know how many you are sending/reading and track the number that actually were sent/received. Then update your progress bar accordingly. Both the TCP Read and TCP Write return the numbers of bytes received/transmitted.
09-22-2012 12:35 AM
First of all what is shipping example ?
If i know that number of bytes i am going to read than also this TCP read will show the number of bytes only after reading entire byte. So progress bar cant be implemented in this scenario.
What i mean to say that if i want to read 10000 bytes than the DATA OUT string in the TCP READ will be updated once the read process is over hence this is not dynamic hence progress bar cant be implemented.
Any other solution ?
09-22-2012 07:43 PM
Help menu, Find examples.
If you are dealing with only 10,000 bytes, then why are you worried about a progress bar? 10 KB is going to come in pretty instantaneously, there would be no need to update someone with a progress bar.
09-22-2012 11:57 PM
10,000 is just an example. Data will vary from 200 bytes to 2097162. So i need to implement progress bar & definately for larger bytres