How to kill TCP-IP Listen or Open Connection while they are waiting to connect?

We have an application that acts as a control panel for a customer's device.
It connects to the device using TCP-IP.
It can be configured to connect as a server (listener) or as a client.
The user of this applicaiton must have the ability to disconnect from the device and point and connect to a different device at a different IP and port.
When the user tries to connect to a device but can not (the device is not ready or the IP address is wrong) he wants to abort the connection, change the settings then restart the attempt to connect.  
How do I stop the TCP-IP Listen or TCP-IP Open Connection VIs?  We typically use a timeout of a couple seconds and this is a long delay for a respond to the operator when he wants to abort the connection attempt.

Thanks for the quick response. 
I was hoping there was a more elegant Labview solution that may work for both the wait on listen and the connect VI.
I tried to close the wait on listener by closing the ref from the create listener.
That works.  See attached picture. I use a queue to send the abort message.  The wait on listen state will be blocked until either a connection is made or an abort message is sent via the queue.  If a message is sent, the dequeue vi unblocks and causes the listener reference to close which will kill the wait on listen VI.  If a TCP-IP connection is made it will close the queue reference which will kill the dequeue vi.
I guess for the TCP-IP connect VI I can:
A. Use a couple second time out that is tolerable to the operator if then abort the connection attempt. (like you suggested)
or
B. Create a VI with the TCP-IP Open Connection VI in it.  I can launch that VI dynamically and wait until done (invoke node Run VI with Wait Until Done set to true).  If a connection is made it will finish and I will read the outputs using an invoke node (Ctrl Val.Get).  If it needs to be aborted, I will abort the VI using an invoke node (VI Abort).
Attachments:
Wait on listener with Abort example..JPG ‏265 KB

Similar Messages

Maybe you are looking for

  • Employee Attendance Related

    Hi I have two forms to mark employee attendance daily and employee Leave.Which employees are present marking attendance P into emp_attendance table. i have to keep record of the absent teacher who didn't inform and emplyee which are on leave.Which em

  • How do I distribute apps to clients in house (more than a hundred)

    I'm currently wanting to distribute apps that plugin to software we have developed for our clients (more than a hundred). These apps are not for public and don't want them to be. 1. How can I distribute them? 2. Do I have to enroll in iOS Developer P

  • ISA, Sales Order Search, Search by extra fields

    In the standard ISA, customer can search based on Reference Number, Transaction Number, and Purchase Order Number. The options exist in a drop down menu. I want to add extra fields in the menu and search with new criteria. How do we add functionality

  • SUS MM POR (Purchase Order Response) Workflow

    All, I am trying to configure MM-SUS(Plan Driven Procurement) scenario with SRM 5.5 and EEC 6.0. XI is set up. There is no SRM. It only ECC and SUS. Steps 1-     PO is created in ECC, transmitted to SUS. 2-     On SUS Supplier logs on and processes P

  • Create a Work Flow Task  for a milestone of the network activity

    hi friends,                I am creating N/W and Milestone using BAPI_NETWORK_MAINTAIN.                Now, I want to update <b>Milestone Functions Tab</b> which has <b>Task Id,</b> and other fields.               Please suggest me <b>some Function M