TCP Open and Close using NI TCP VI's

Do I need to close the TCP connections on both ends.  For example, I have a "server" that Listens and then a client that opens the TCP connection.  Do I have to close the TCP connections on both ends.  I'm closing it at the client side but is it also suppose to be closed at the Listening end?

Guy04 wrote:
Do I need to close the TCP connections on both ends.  For example, I have a "server" that Listens and then a client that opens the TCP connection.  Do I have to close the TCP connections on both ends.  I'm closing it at the client side but is it also suppose to be closed at the Listening end?
Whenever you optain a LabVIEW refnum through an Open or similar function you should close it at some point too. A TCP refnum is really sort of a pointer to a local network socket and therefore represents resources in the form of memory and network stack management information. Not closing a connection refnum returned by the listen node may prevent your server to serve new connections after some time, since all internal network ports are blocked or the nework stack runs out of resources.
So close the connection refnum returned by the Listen function after the server is done serving your client and of course do the same on the client side as you already did. Also if you use Create Listener and Wait on Listener (which allows you to write server applications that can serve multiple connections simultanously) close the Listener refnum too when your server is done. Not doing so may prevent the server to be opened at the same port without restarting LabVIEW or at least your application.
Rolf Kalbermatter
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • IE open and close immediately. Can't fix using many methods.

    A user reports that can't use IE 8 suddenly.
    His PC is Windows 7 Pro sp1 and using Internet Explorer 8.
    Don't know what he did before and he ever tried restore to previous point but no help.
    I've tried the following.
    1. http://support.microsoft.com/kb/967896
       Reset Internet Explorer to its default settings or
       Uninstall and then reinstall Internet Explorer through Turning on/ off windows features.
    2. Use other user like Administrator to open IE. But result is same
    3. Upgrade to IE 11. Still open and close immediately only.
       Repeat step 1 but still not solve.
    4. Downloaded IE 11 and installed manually but it stated that IE 11 was installed. (Had turned off IE to uninstall it through Turning on/ off windows features)
    Asked him to use Chrome but some websites need IE. So he must use IE too.
    Please advise that how to fix it.
    Hope not need to re-install OS.
    Many thnaks.

    1. Are there any traces in Event logs?
    2. Try to delete history in IE
    3. Try to disable add-ons.
    4. If nothing helps, analyze your system with Process Monitor and Process Explorer. Check which programs starts with Autoruns (all programs are from Sysinternals)
    Regards
    Milos

  • I recently migrated my MacBook from 10.5.8 to 10.6.8, using the Snow Leopard CD I purchased from Apple. Since then I have noticed a strange ozone smell coming from the MacBook in the area where the hinges are to open and close the unit. I was told by Appl

    I recently migrated my MacBook from 10.5.8 to 10.6.8, using the Snow Leopard CD I purchased from Apple. Since then I have noticed a strange ozone smell coming from the MacBook in the area where the hinges are to open and close the unit. I was told by Apple that it probably is not serious and is coming from the fans in the MacBook. It is true that the smell/odor is more intense when the fans are working. Apple said I should take the MacBook to an Apple Store to have the hardware checked out. Everything seems to be working correctly. I am backing up automatically wirelessly to a Time Capsule, which I had not done until recently, although I had purchased the Time Capsule in 2009. I have not noticed this odor before. Does anyone suspect something more serious that may be going on?

    You may be smelling it because with the new OS the processor is having to work harder causing it to get hotter then it would with the other OS.  I can't say there is nothing wrong, but what could be happening is just that, it's getting hotter so the fan is spinning faster and moving more air so you are getting more of the smell then you would before.  I would still continue to back it up, and take it to the Apple Store at a Genius Bar and have them look at it to make sure.  Was the computer ever in a smoky environment??

  • How can I open and close private browsing using an IPAD mini in IOS 7?

    How can I open and close private browsing using an iPad mini in ios7?

    Tap the '+' to the right of the URL field to open a new tab, and at the bottom left of the screen there should be a 'Private' button - tap that and you can then go to the site that you want to go to

  • I'm trying to draw a candlestrick chart without using the open and close fields

    I'm trying to draw a candlestrick chart without using the
    open and close fields, however I am seeing nothing on the cart. The
    horizontal and vertical axis are displaying their labels correctly
    for the data. Any ideas what is going on here?

    "nikos101" <[email protected]> wrote in
    message
    news:gi5rh4$ptn$[email protected]..
    > Is it not to draw the line between the high and low
    then? The data I
    > recieve has no open and close data :(
    >
    I've never seen a candlestick that didn't have all 4
    properties.
    You may find the floating columns do what you want here
    http://demo.quietlyscheming.com/ChartSampler/app.html
    or possibly the
    vertical line type will work for you.
    HTH;
    Amy

  • When iphone lock i'm want to use slide open and close camera

    1. When iphone lock i'm want to use slide open and close camera
    2. When i'm turn on wifi via control center i'm need to keep it show popup in order to select join wifi the other

    Autthapol saiyat wrote:
    1. When iphone lock i'm want to use slide open and close camera
    When the phone is locked, you can pull up on the camera icon in the lower right of the screen to access the camera. If you have Control Center enabled in the lock screen, you can also access the camera that way. 

  • Control valve that opens and closes linearly using DSC

    I have to create a control valve that opens and closes linearly.I want to view its variation in percentage wise in the graphical form which uses DSC module.

    Hi Gerardjoe,
    I'm not sure that I completely understand what you're trying to do. In the DSC modules, the valves (2D and 3D) are simply boolean indicators.
    One thing you could do, to see some sort of a percentage change, would be to have an indicator such as a vertical fill slide. Here, you would put a number between 0-100.
    Then, you could have a comparison, such that if this value was over, say, 60, then the boolean value would be true and the valve would turn on. Else, the value would be false and the valve would stay false.
    I hope that this answers your question; if I did not understand correctly, please do respond and clarify.
    -Sam F, DAQ Marketing Manager
    Learn about measuring temperature
    Learn how to take voltage measurements
    Learn how to measure current

  • Photoshop 12 trial version will open and Close before I can use it

    How can I fix this problem when I open Photoshop Elements 12 it opens and closes immediately?

    Ralph Hoover
    You have posted in the wrong Adobe Forum. If you have Photoshop Elements 12, you should be posting in the Adobe Photoshop Elements Forum, not the Adobe Premiere Elements Forum (video editing).
    http://forums.adobe.com/community/photoshop_elements
    Either repost your question or wait for a moderator to see your thread and place it in the appropriate forum.
    Some questions to think about...
    a. How are you opening the program? From the desktop icon? If so, how far do you get....do you get the Welcome Screen and does it stay open? Is it only when you hit Welcome Screen Organizer or Editor Tab that everything closes/disappears?
    b. What computer operating system are you running your Photoshop Elements 10 on? What do your computer resources look like? Is your Photoshop Elements 12 issue "it never worked before" or "it worked before but not now"?
    Lots more questions. But lots more details needed.
    ATR
    c.

  • My firefox always opens a crash report when I close it. Even if I have no tabs open and close firefox.

    The Crash information is:
    AdapterDeviceID: 95c4
    AdapterVendorID: 1002
    Add-ons: TFToolbarX@torrent-finder:1.2.6,{1de0de3c-0b5c-4f67-90c6-689623894991}:0.3,{9fb7d178-155a-4318-9173-1a8eaaea7fe4}:2.1.11,{B17C1C5A-04B1-11DB-9804-B622A1EF5492}:1.2.1,{c0c9a2c7-2e5c-4447-bc53-97718bc91e1b}:5.4,{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}:1.3.9,{D4DD63FA-01E4-46a7-B6B1-EDAB7D6AD389}:0.9.8,{ef4e370e-d9f0-4e00-b93e-a4f274cfdd5a}:1.4.4,{b9db16a4-6edc-47ec-a1f4-b86292ed211d}:4.9.5,[email protected]:4.0.2,{1E73965B-8B48-48be-9C8D-68B920ABC1C4}:10.0.0.1410,avg@igeared:7.008.031.001,[email protected]:1.3.5
    AvailableVirtualMemory: 3804364800
    BuildID: 20110902133214
    CrashTime: 1316851060
    EMCheckCompatibility: true
    Email: [email protected]
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1315413340
    Notes: AdapterVendorID: 1002, AdapterDeviceID: 95c4, AdapterDriverVersion: 8.872.0.0
    D2D? D2D+
    DWrite? DWrite+
    D3D10 Layers? D3D10 Layers+
    ProductName: Firefox
    ReleaseChannel: release
    SecondsSinceLastCrash: 452
    StartupTime: 1316850895
    SystemMemoryUsePercentage: 78
    Theme: LavaFox_V1-Blue
    Throttleable: 1
    TotalVirtualMemory: 4294836224
    URL: https://support.mozilla.com/en-US/questions/new?product=desktop&category=d2&search=My+firefox+always+opens+a+crash+report+when+I+close+it.+Even+if+I+have+no+tabs+open+and+close+firefox.&showform=1
    Vendor: Mozilla
    Version: 6.0.2
    Winsock_LSP: MSAFD Tcpip [TCP/IP] : 2 : 1 :
    MSAFD Tcpip [UDP/IP] : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD Tcpip [RAW/IP] : 2 : 3 :
    MSAFD Tcpip [TCP/IPv6] : 2 : 1 : %SystemRoot%\system32\mswsock.dll
    MSAFD Tcpip [UDP/IPv6] : 2 : 2 :
    MSAFD Tcpip [RAW/IPv6] : 2 : 3 : %SystemRoot%\system32\mswsock.dll
    RSVP TCPv6 Service Provider : 2 : 1 :
    RSVP TCP Service Provider : 2 : 1 : %SystemRoot%\system32\mswsock.dll
    RSVP UDPv6 Service Provider : 2 : 2 :
    RSVP UDP Service Provider : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    This report also contains technical information about the state of the application when it crashed.

    Have a read of the rather complicated article
    * [[firefox crashes]]
    * and for anyone with firefox crashing before you can key in about:crashes see: <br/> http://kb.mozillazine.org/Breakpad#Location_of_crash_reports
    I note you have found bp-54df2ba6-de52-405d-9ccc-4dd272110924 have you any other recent crash signatures or crash IDs, the one you provide seems rather uncommon [https://crash-stats.mozilla.com/report/list?product=Firefox&query_search=signature&query_type=exact&query=karasx2.dll%400x2535&reason_type=contains&date=09%2F24%2F2011%2001%3A44%3A07&range_value=1&range_unit=weeks&hang_type=any&process_type=any&do_query=1&signature=karasx2.dll%400x2535 [karasx2.dll%400x2535]]
    Do you still get the problem in [[safe mode]] and with default themes, and all plugins disabled. Note common causes of crashes are malware, and versions of the software IDvault. (do you use IDvault ? - often provided by Comcast)

  • Apps in iPad 1 open and close quickly

    Hello,
    My mother has an iPad 1 (she has her own itunes account) but had never synced and updated her iPad with a computer (pc or mac).
    Today I had to use it and connected to my iTunes on the pc but only to update her iOS on the iPad wich was 3.x. After the whole update process (wich went normal and smooth) almost every app that I woud open, closed imeadtly. I say ALMOST because, a few from the default apps (like Mail, Photos, Safari, System, etc) opens normaly. Though iBooks doesnt and all 3rd party apps also doesnt open normaly.
    I've tryed to reboot it one more time thinking it was some kind of strange bug or something but didn't work. The apps continue to open and close almost instantly.
    I'd like to know if anyone had a similar problem and how they solved it or if my only resource is to roll back to the iPad backup made in my pc.
    Thanks in advance.
    Luis Felipe

    Try double-tapping the home button, then holding the app icon until the minus sign appears. Touch the minus sign to kill all the apps. Then restart the iPad with the home/power buttons (hold for ten seconds) until the apple appears.

  • Where we have to open and close posting periods in asset accounting

    hi sap gurus
      can anybody give where we have to open and close posting periods in asset accounting
    thank you
    venkatareddy

    Hi Venkatareddy,
    You make specifications for fiscal years and posting periods in the SAP R/3 System in Customizing for Financial Accounting. This is done in the fiscal year variant in the global parameters of the company code. These settings are, in general, also binding for Asset Accounting. The depreciation periods in Asset Accounting then correspond to the posting periods in Financial Accounting.<b> It is usually not necessary to create a separate fiscal year variant for Asset Accounting.</b>
    The period control in the depreciation key determines the start and end of depreciation when asset transactions are posted . The period control determines the relationship between the calendar period in which the asset transaction is posted and the depreciation period.
    These calendar periods are independent of the posting periods in Financial Accounting. The only restriction is that the beginning of the first calendar period and the end of the last calendar period defined in a period control have to match the start date and final date of the fiscal year in Financial Accounting.
    Kindly let me know if this useful for you

  • How can I enable the center mouse click to open and close tabs in Firefox and Chrome?

    I have a MacBook Pro Model A1261 purchased in 2009. On my other mac at work (and my PC) I can center click to open a link in a new tab while in Chrome or FireFox, and also to close a tab by clicking on it in the tabs at the top. I am using an external USB mouse on my MacBook Pro and when I click the center scroll wheel it brings up the dashboard. I looked in the settings but wasn't able to find a way to change that setting for the center button to open and close tabs in my web browser. Is there a way? Please help!

    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    * browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    * browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    * browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.latched -> <b>false</b>
    *http://kb.mozillazine.org/about:config
    See also:
    *pinchy: https://addons.mozilla.org/firefox/addon/pinchy/

  • What is the better way to open and close connection in bean

    Hello, may i ask about the best way to open and close the connection?
    At the first, the connection code is store in Conn class bean. The JSP page will call a method in Process bean to process the query and update of database. the Process bean is using th Conn to connect to database.
    In my process bean, it have a method for each type of sql like select, insert, update, and delete for each tables. Each method will call the Conn to open and close the connection. The jsp page can simply call a method retrieve or update records.
    However, when calling the processUpdate method, it is a method that update a group of tables base on the query result of another group of tables and calculation. If I calling the query method in the same bean file, it will open and close the connection many times (more than 1000 times). After open and close the connection several times, the connection to mySQL will be fail.
    Currently, i include 2 method in Process that is only calling the Conn to open the connection and close connection. When calling the openConnection method, it will also set the boolean connected in the class to true and call Conn to open connection. When calling the closeConnection method, it will also set the boolean connected in the class to false and call Conn to close connection.
    After that, i add some change to the query method which is when the connected is false, it will open the connection by calling the Conn and close the connection themself. If the connected is true, it will not call the Conn to open and close the connection because it already connected to the database.
    Now, i when i calling the query method in jsp, it can open the connection and close the connection individually. When i call the processUpdate in the jsp, this method will calling the openConnection before calling the query and calling closeConnection at the end. It not only faster the process(less open and close), it also no cause the connect to mySQL fail error again. However, it also make the coding in the bean file more longer and complex.
    Is there have any better solution?

    Use connection pooling. This will put the connection management in the hands of the webserver, not your code. Check out this post:
    http://forum.java.sun.com/thread.jspa?threadID=741788&messageID=4252932#4252932

  • Open and Close Shelf Effect

    Relative newb to Flash and not sure what the issue is but I have a shelf opening and closing effect  The timeline is 45 frames long and when the shelf is out it has this AS3 code in it:
    import flash.events.MouseEvent;
    stop();
    ShelfOpen,addEventListener(MouseEvent.CLICK, closeShelf);
    function closeShelf(evt:MouseEvent){
    gotoAndPlay(17);
    Once clicked, the shelf closes and only a sliver of the shelf appears.   The person can re-open it by clicking the sliver at frame 30 using this code:
    import flash.events.MouseEvent;
    stop();
    ShelfOpen,addEventListener(MouseEvent.CLICK, openShelf);
    function openShelf(evt:MouseEvent){
    gotoAndPlay(31);
    In the last frame (45) I have the code:
    gotoAndStop(16)
    which should return the shelf to its open position and allow the user to close it again if they click in the shelf, but it seems to be listening at at frame 30 and just running the Open Shelf motion again.  I would just like the user to be able to open and close the shelf as they like.  Any help would be apprecaited.
    -DC

    See if removing the event lsteners in the event handlers helps, as in...
    ShelfOpen.addEventListener(MouseEvent.CLICK, closeShelf);
    function closeShelf(evt:MouseEvent){
       ShelfOpen.removeEventListener(MouseEvent.CLICK, closeShelf);
       gotoAndPlay(17);
    (similarly for the other)
    and make sure you are not using commas after ShelfOPen like you did in the code you posted.

Maybe you are looking for