TCP progress bar

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 ?
Kudos are always welcome if you got solution to some extent.
I need my difficulties because they are necessary to enjoy my success.
--Ranjeet

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.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • How to create a progress bar showing status on timeout of TCP Read function

    Is there any way of creating a progress bar showing the status of a 'TCP Read timeout' time ... ?
    I'm sending a data request to an intranet server via TCP Write, and then using TCP Read with a 2 min. timeout to receive the requested data. During this time i want to show the actual progress of the timeout in a progress bar.
    Can this be done?
    And do i have to implement some kind of multitasking to make it happen?
    TIA

    Soulstorm wrote:
    > Is there any way of creating a progress bar showing the status of a
    > 'TCP Read timeout' time ... ?
    >
    > I'm sending a data request to an intranet server via TCP Write, and
    > then using TCP Read with a 2 min. timeout to receive the requested
    > data. During this time i want to show the actual progress of the
    > timeout in a progress bar.
    > Can this be done?
    > And do i have to implement some kind of multitasking to make it
    > happen?
    It can be done and you need to do some multitasking yes, but that is
    quite easy in LabVIEW. A separate loop or subVI with loop will be
    responsible for the progress bar. Set its scale to 0 and the number of
    seconds of your timeout. In parallel to the TCP Read let this loop or VI
    execute reading the time every few
    seconds and calculating the
    difference to its start time, passing this value to the progress bar
    slider. Have an extra boolean global which aborts the loop and set this
    boolean to FALSE before starting the loop/VI and TCP Read and setting it
    to TRUE on return of the TCP Read.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • HT1339 In stage 9 my iTouch shows the apple and a stuck progress bar showing about 10% completion.  This after 1/2 hour.  What now?

    In stage 9 of Restore my iTouch shows the apple and a stuck progress bar showing about 10% completion.  This after 1/2 hour.  What now?

    Refresh my memory as to what stage 9 is? Does the staus bar say anything else?
    Maybe this:
    Hang during restore process
    Following Troubleshooting security software will frequently resolve this issue. This issue can be caused by the default packet size being set incorrectly. There may be third-party software installed that modifies the default packet size in Windows by inserting a TcpWindowSize or MaxGlobalTcpWindowSize entry into the Registry. Contact the manufacturer of the software that installed the packet-size modification for assistance in adjusting this TcpWindowSize values. Typically the default packet size is modified by 3G cellular network card software, ISP communication software, or Internet speed download optimization software. There are legitimate reasons to change the TCP/IP packet size and not use the Windows default settings (for example, network traffic optimization, home/broadband optimization, enterprise app optimization such as database apps, Exchange, and more). Deleting the "TcpWindowSize" or "GlobalMaxTcpWindowSize" entries in Windows Registry could affect the system's performance with other apps or on their network connections. Deleting the customized TCP/IP settings may require the reinstallation of any third-party applications that had modified the TCP/IP settings from the Windows default settings.
    There are two ways to resolve this:
    You can follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) , or follow the steps below to manually find and remove TcpWindowSize and MaxGlobalTcpWindowSize entries from the Registry.
    For Windows XP, Windows Vista, Windows 7: Go to the C:\Windows folder and launch regedit.
    Go to Edit > Find.
    Search for "TcpWindowSize" entries. There are typically multiple entries of TcpWindowSize/GlobalMaxTcpWindowSize spread throughout the entire Registry. If "TcpWindowSize" exists, one or more third-party applications have changed the user's default Windows settings for TCP/IP.
    Go to File and select Export. This step will export a copy of the Registry that can be used as a backup of the original settings.
    Delete the "TcpWindowSize" entry.
    Search for the next "TcpWindowSize" entry and delete each one until the Registry no longer has any "TcpWindowSize" entries.
    Close Regedit, restart the PC, and test.
    If you are uncertain as to why these registry entries exist and the PC is a business computer, contact your network administrator and determine what values TCP/IP can be set in their Windows Registry setting so that the PC can update or restore an iOS device rather than deleting the "TcpWindowSize" entry.
    If editing the registry does not resolve the issue, restoring on a different computer that did not install the communication software is the step most likely to resolve this issue.

  • FTP transfer progress bar

    I'm trying to write an FTP application by using FTP library provided with LabVIEW Internet Toolkit library.  I have a large file (>1GB) that I want to transfer from PXI Real-time controller to my host computer running Windows XP.  On my windows machine I would like to show the users the progress bar and percent of the file being transferred just like the FTP windows provided by MAX from NI. Please See the attached screen capture.  How do I accomplished that?
    Thanks!

    The low level file transfer is performed in vi.lib\addons\internet\utils\tcputil.llb\TCP Write Stream.vi
    There is a shift register that contains the bytes left unwritten that could be used to determine the progress.
    Issues:
    You would need to modify this VI to expose the bytes left unwritten to your UI.  In general, its not a good idea to change NI supplied VIs.
    This VI is reentrant. It may be possible to have more than one FTP transfer happening at the same time; so using a LabVIEW global to expose the value would not be a good idea.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Help needed please, with Iphone stuck with apple picture and progress bar after software update attempted

    Help needed please, everytime I try to update the software version on my iphone it comes up with a message saying it could not be completed and is now frozen with the apple picture and progress bar on it. Do I unplug it and hope the macbook pro sees it again, I also stupidly did not back up before starting the download which I realise I will have to go back to the previous back up. This keeps happening, everytime I do this type of update, I'm starting to think I should just give up on updating my software on the Iphone. I thought it was happening because I was using a window based computer to do the updates, this time I used my Macbook Pro. Please somebody help

    ljm17 wrote:
    ...This keeps happening, everytime I do this type of update, I...
    Then you should know what you need to do... If you don't remember...
    See Here  >  http://support.apple.com/kb/HT1808

  • Problem installating Snow Leopard on old Macbook Pro with Intel Core 2 Duo. After creating partition on internal hard disk (Extended Journaled), installation starts but stops at half of the progress bar. Screen asking Restart appears.

    Hello:
    I have tried installing Snow Leopard via the installation disc on a Macbook Pro (2007) with an Intel Core 2 Duo, but I the installation has failed more than 5 times.
    I have first formatted and partitioned the internal hard disk with Mac Os Extended Journal format.
    Once the installation starts, it starts without a problem unti lthe progress bar gest until half completed then a screen asking for a Computer Restart shows up.
    It asks to press the power button for some time until it the computer shuts down and then, press again to turn it on.
    Once turned on, the installation disc gets readed, the installation screen appears again and asks again to start the whole installation process form the beginning.

    Then you have a Hardware Problem.
    Your system is Crashing part way through the install and Re-Booting because of the crash.
    Could be the drive itself or it could be some other hardware part in your system. Like the RAM.
    To check if it is the internal drive connect an External drive to the system by USB and do the install on that external. If the install completes then it more then likely the drive is bad. If it crashes again then it is more then likely some other piece of hardware in your system.

  • After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it.

    The page load progress bar that was on the lower right of the window is no longer there. After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it. The tab has a circular progress wheel but this is useless for determining a stuck or slow loading page.
    PLEASE NOTE: I am typing this in from a Windows based work computer but am asking about my Apple MacBook Pro that i use at home.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • When I try to empty trash, progress bar stops, and I have to reset finder

    This has been happening for about a week or so. Regardless of what the files are, I am unable to delete them. Whether I do a standard empty trash, or a secure empty trash, I end up with the same progress bar that stops during the process. I've let it sit for several minutes and over an hour, leaving me the only option of doing a force restart of finder.
    Currently I am unable to delete anything, putting a serious hold on my workflow.
    It appears that many people are having all kinds of trash issues with Snow Leopard. I'm assuming Apple is working on a fix, but I'm not sure when that's coming out. Until then, if there is some kind of work-around, I'd love to know about it.
    Any guesstimates on when Apple will release the next OS update?
    Cheers.
    Ben

    Start with http://www.thexlab.com/faqs/trash.html Do note that AFAIK, there aren't any trash issues with Snow Leopard, just the normal handful of common issues, usually fixed by the steps in the linked article.

  • Internet recovery gets stuck on the spinning globe with the progress bar below.

    Hello Everybody!
    I'm trying to fix the iMac (27-inch, Mid 2010) of my friend. He said it doesn't boot anymore and just gets stuck on the grey screen with the Apple logo and the spinning wheel below. So my first step was to go into the Startup Manager by pressing the Option key after the chime. There I was presented with the Macintosh HD and the Recovery HD. After selecting the Recovery HD to access the Disk Utilities I got stuck on the grey screen with the Apple logo and the spinning wheel again. So I guess the data on the drive is corrupted and might have to be replaced. But before I do that, I wanted to give the Internet Recovery a try. I connected the iMac to the internet using an ethernet cable and pressed Command + Option + R after the chime and the spinning globe appeared with the info: "starting recovery process from network. This may take a while". After a short time the sentences are replaced by a progress bar and a timer that is counting up. The progress bar then moved for a tiny little bit and then nothing happens anymore but the timer keeps counting up. I waited for quiet some time before I gave up. I did not get any errors so I can't provide any other useful information. Can anyone give my some advice? I read in other posts that the ISPs of specific countries block ports which are needed for the internet recovery. I'm in Thailand right now. Does anyone know if that might cause the problem?
    Thank you for all your help!

    Neither we nor Apple support jailbroken iDevices.

  • HT1212 My ipad mini has been crashing a lot recently so I started a system reset. However, it's now stuck with the progress bar less than a quarter gone: this has been the case for several days now. I have tried resetting from itunes but it needs the pass

    Now it's stuck with the progress bar less than a quarter full. I have also tried resetting through itunes which works right up to the point where itunes states that it needs the passcode to be inputted into the ipad to connect to it. At which point it then sticks at the same progress bar point. HELP!! please, this ipad is really important to my work.

    Well the term "hotlined" I have never heard before. In any case many states (like NY) just passed regulatory powers to the State Public Service Commission of which it may be called something different in your state. You could file a complaint with them. Or file a complaint with your state attorney generals office, they also take on wireless providers.
    The problem here is the staff you speak to are poorly trained, in days gone by it took one call to them and they pulled up your account and see the error and had the authority to remove any errors. They did not remove legitimate account actions, but used their heads instead of putting a customer off or worse lying to the customer.
    Its a shame you have to go through what you going through.
    Good Luck

  • Intel iMac - won't start - grey screen & progress bar

    I have a 2006 Intel iMac - 20" model, Intel Core Duo, 2GHz, 2GB RAM, 250GB HDD, etc.  It was one of the very earliest Intel iMacs.  Kept updated, running OS 10.6, etc.
    It has worked extremely well for over 5 years - apart from the Superdrive being temperamental sometimes - but has suddenly gone wrong.
    Last week the machine completely froze for no apparent reason.  I had to force a reboot.  This failed - grey screen and the grey spinning wheel (if that's what it's called), indefinitely.
    Forced reboot again and this time held down the shift key to go into safe boot mode.  This time it was successful, and I was able to get to the logon screen & log myself in.  I opened Disk Utility & attempted to do some diagnostics but the machine froze again.
    Looking around various other forum postings...I rebooted the machine in single user mode and was able to get to the command line to type 'fsck -fy' to attempt to fix disk problems.  This failed repeatedly, with an error message 'invalid node structure'.
    I tried to boot my machine from the OS X disc but my Superdrive refused to play ball - it would not read the disc (or any other disc for that matter, including a copy of DiskWarrior that I have).
    I have now got hold of an external DVD drive in the hope that this would show up as a boot device when I switch the machine on while holding the option key down.  No such luck - the drive powers up ok (power via USB) but I'm not given the option to boot from it - in fact that screen doesn't appear at all.
    All that happens now on powering up - regardless of what I do - is the grey apple symbol appears and a progress bar beneath it.  The progress bar gets stuck about 5% of the way along, and then after about 10 minutes it disappears and is replaced with the grey spinning wheel thingy.  And then it just gets stuck - nothing else happens.
    HELP!
    All my important data is backed up on an external drive via Time Machine, so that should be safe, but I'm desperate to get the machine running again.
    One thing that occurred to me is that I've had a program called ReFit installed on the machine which allowed me to run the machine as dual boot etc. (and I do have a couple of other small partitions on the drive, not currently used) but the ReFit welcome screen stopped appearing a couple of weeks ago for some reason.  I'm wondering if this has somehow messed things up...?
    Grateful for any suggestions...
    Thanks,
    Alan.

    For the drive, you should be OK with any SATA 2 at 3 MB/s transfer speed. You could also use a SATA 1, no jumpers needed. (Not SATA 3 - can't be jumpered down.) The early 2006 Intels were 1.5 MB/s -- at least the drives were, so I'm assuming the SATA controller on the logic board was also. Might just be SATA 2 hadn't yet been introduced and can run the faster SATA 3 without jumpers. My guess is not. You should be able to set jumpers on the drive for backwards compatibility. You'll have to contact the drive manufacturer or go to their website for that info.
    http://www.everymac.com/systems/apple/imac/stats/imac-core-2-duo-2.16-20-inch-sp ecs.html
    As for the superdrive, I'd contact the manufacturer to check on compatibility.
    Glad I'm able to help. BTW, in case you haven't noticed, maybe you want to have a look here.

  • Progress bar on start up doesn't finish

    When I log onto my MacBook Pro after I enter my password a progress bar appears which starts to move across but only goes about 20% of the way before the desktop appears. I have heard that there has been a problem with automatic updates which don't fully install and this could be a symptom of that. Unfortunately I now get a problem where the Desktop seems to freeze and I can't select items with the trackpad. I'm not sure if the two are linked or just a coincidence.

    That is normal. If you get to the Desktop and all is working you don't have a problem. But if you do have a problem, then you need to do this:
    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the
         computer and after the chime press and hold down the OPTION key until the boot manager
         screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    5. Reinstall Yosemite from Scratch:
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    How to Clean Install OS X Yosemite
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Animated Progress Bar issues

    I am working with the animated progress bar from the late Carl Backstrom's demo applicaiton but to my amazement, the bar refuses to animate unless the javascript is triggered from a button press. This is not really acceptable for my purposes as I need to have it fire and work though an onLoad on the body attributes. Any Sugestions? I know some people are going to probably say ExtJS and JQuery but our development rules here will not allow us include either of these libraries at this time.

    It is actually an intermediate page with a PL/SQL process that runs on submit to cache database information from a remote db. I actually have a button on another page that routes into the page in question so that I can clear everything in the background to prevent people from being able to go to another page while loading process is under way. The way I have it setup now is you click a button to start a multistage process and you are taken to a loading page which basically takes away other links on the page and gives you a blank page with the progress bar. Once loading is finished, it branches the person to the next step.

  • Director 12 - progress bar

    I need to add a progress bar to the splash screen of a Director 12 .dcr which is hosted on a website.
    The progress bar doesn't have to show the exact time remaining before the main.dcr starts, it just gives the user a rough indication that "loading" is happening.
    I was thinking of using an animated .gif for this, making the .gif visible when the user clicks the Start button, but I don't knon how to do this in Director.
    Is there a standard way to make a loading-in-progress indicator in Director, for a web hosted .dcr?
    Thank you.

    Is this the kind of thing you are looking for?
    -- **Drop this Behavior on your progress bar**
    global gNetmovieID1
    global gCurrentSprite
    global gBarWidth
    global gBarConverter
    global gPercentText -- starts at 0% and ends at 100%
    global gStatList
    global gPercentDone
    on beginSprite me
      tellStreamStatus(TRUE) -- Turns on the stream status!!!
      floatPrecision = 2
      gCurrentSprite = me.spriteNum -- the current sprite "progress bar"
      gBarWidth = (sprite gCurrentSprite).width
      gBarConverter = (float(gBarWidth)) / 100
      gNetmovieID1 = preLoadNetThing("http://www.website.com/filename.dcr?p=" & string(random(1000) ) ) -- preLoads your hosted .dcr file!!!
    end
    on exitFrame me
      if Netdone(gNetmovieID1) = TRUE then
        gPercentText =  "100%"
        PLAY MOVIE ( "http://www.website.com/filename.dcr" ) -- plays your hosted .dcr file!!!
        abort
      else
        -- This checks the download status and updates the "progress bar" and the gPercentText
        gStatList = getStreamStatus(gNetmovieID1)
        if (gStatList.bytesSoFar > 0) then
          gPercentDone = (gStatList.bytesSoFar * 100.0001) / gStatList.bytesTotal
          (sprite gCurrentSprite).width = integer (gPercentDone * gBarConverter)
          gPercentText = string(integer(gPercentDone) & "%")
        else
          (sprite gCurrentSprite).width = 1
          gPercentText =  "0%"
        end if
      end if
    end if

  • How to determine a sql query size to display a progress bar

    I would like to show a progress of an sql query within a jsp page.
    Background:
    I have a reporting web application, where over 500 contacts can run reports based on different criteria such as date range....
    I current display a message stating 'executng query please wait', however the users (hate users) do not seem to wait, thereofore they decide to run the query all over again which affected my reportign sever query size (eventually this crashes, stopping all reports)
    Problem:
    The progress bar is not a problem, how would I determine the size of the query at runtime therefore adding the time onto my progress bar.

    Yes it's doable (we do it) but it sure ain't easy.
    We've got about 23,500,000 features (and counting) in a geodata database. Precise spatial selection algorithms are expensive. Really expensive.
    We cannot impose arbitrary limits on search criteria. If the client requires the whole database we are contractually obligated to provide it...
    For online searches We use statistics to approximate the number of features which a given query is likely to return... more or less the same way that the query optimiser behind any half decent (not mysql (5 alteast)) database management system does.
    We have a batch job which records how many features are linked to each distinct value of each search criteria... we just do the calculations (presuming a normal (flat) distribution) and...
    ... if the answer is more than a 100,000 we inform the user that the request must be "batched", and give them a form to fill out confirming there contact details. We run the extract overnight and send the user an email containing a link which allows them to download the result the next morning.
    ... if the answer is more than a million features we inform the user that the request must batched over the weekend... same deal as above, except we do it over the weekend to (a) discourage this; and (b) the official version ensure we have enough time to run the extract without impinging upon the maintenance window.
    ... if the answer is more than 5 million we display our brilliant "subscribe to our DVD service to get the latest version of the whole shebang every three months (or so), so you can kill your own blooody server with these ridiculous searches" form.
    Edited by: corlettk on Dec 5, 2007 11:12 AM

Maybe you are looking for

  • IOS 8 RAW Support - Photos Resized

    Can anyone else confirm this possible bug? Importing JPG+RAW files using the Camera Connector on iOS 8 resizes the RAW files to the exact same file size as the JPG. This ends up being about a 50% reduction in RAW file size. At this point I have no id

  • When I send a text message to my husbands iPhone he does not get it

    When I send a text to my husbands iPhone he does not get it.  It worked before the new update.

  • Performance Tuning in case of Database Access

    Hi,   I am using following code...database access is huge for this code...pls help me out to make database access minimum. I am using 3 internal tables. select partner1 partner2 into (mtab-busi_part, mtab-BUT051_PART) from but051. Select  name_first

  • POPUP_UNIT_CONVERSION SAP Function module in Transformation routine

    Hi Experts, I'm using above function module to convert the value of measuring document. I have the unit value in and unit value out, I need help on how to achieve this with function module in the routine... I wrote below code but it is giving me erro

  • Why does my App Store app keep crashing in iOS 6?

    I updated my iPhone 4 to iOS 6 and my App Store launches and as soon as I scroll and check out apps, it crashes. Any thoughts? I typically only have one or two Apps open at the same time. I close apps when I don't use them. Could it be a memory probl