Asynchronous TCP connection with Cloverleaf

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Asynchronous TCP connection with Cloverleaf

  • Creator
    Topic
  • #50803
    Mark Stancil
    Participant

    Hi There,

    Is it possible to do an asynchronous TCP Connection wit Cloverleaf?

    I have a customer that wants me to send the data on one port but he wants to send acknowlegements on a different port.

    Any help is appreciated.

    Mark

Viewing 5 reply threads
  • Author
    Replies
    • #67576
      Jim Kosloskey
      Participant

      Mark,

      While from a technical standpoint this could be done, the real question is the validity of such an approach.

      The acknowledgements for a message should come back on the same port the message was sent (otherwise how would you ever know to send the next message?).

      Now what the customer may be talking about is not an acknowledgment but a response. That is data not an acknowledgment and that certainly could come on another port but the acknowledgment which tells you your mesage was received and it is OK (or not) to send the next message should come on the same port the message is sent.

      What kind of message exchange is this? HL/7, X12, proprietary??

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #67577
      Mark Stancil
      Participant

      Hi Jim,

      Thanks for the response.

      We are sending an HL7 formatted document to a tool called MIK-Millbrook Integration Kit and ultimately to a GE centricity system.  They can do batch or file FTP as well – but we prefer a real time TCP connection with acknowlegements (on the port that we are sending the data).

      Mark

    • #67578
      Mark Stancil
      Participant

      UPDATE:  We ended up just doing an FTP interface with this customer.  We write the data to a file and then FTP it to a directory.  It’s old timey transport of the data – but it works.

      I hear from the Cloverleaf support folks that there are TCL scripts to handle Asynchronous TCP connections.  Mysterious and ellusive scripts that have magical powers and stuff.  If anybody has these scripts – please feel free to share with your Cloverleaf bretheren (and sisteren).  

      Mark

    • #67579
      Michael Hertel
      Participant

      They are with the single socks that disappear in your dryer.  ðŸ˜›

    • #67580
      Jim Kosloskey
      Participant

      Mike,

      I suppose someone may have cobbled together something to do what you describe but I have not heard of it.

      I have done Asynchronous Data exchange integrations over both SNA and TCL/IP. In both situations the acknowledgment for the message sent comes on the same connection as the message is sent out. The Asynchronous part is the reply to the message (typically these are Query/Reply) not the acknowledgment and that always came on a different connection (although that is possible to have happen on the same connection – the Reply that is).

      I can’t believe GE cannot get that working properly – they package Clovelreaf(R) with their products so they have the proper toolset available.

      The issue would be how does port 1 wait until port 2 receives the acknowledgement for port 1’s message? The way I might begin to address this (if I were so inclined) would be to write Tcl code to set a file indicating a message has been sent (when I send a message) on port 1 and keep checking to see if that file is still there (this probably means a sleep – not good). Then Port 2 when receiving an acknowledgment would need to check the file Port 1 placed there and if it is an acknowledgment for the same message, remove the file so Port 1 would know it could send another message.

      Of course, the above does not address handling of unusual situations and NAKS.

      I see real possibility for production errors and possibly even lost messages.

      Does GE claim anyone is doing this kjludge with them – more importantly can they give you a contact (doesn’t need to be Cloverleaf(R) shop – the principle issues are the same no matter what tool is used)?

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #67581
      Russ Ross
      Participant

      Jim:

      I agree that since GE Centricity has at least one ADT real-time TCP/IP interface with us for our Pharmacy system that is fairly standard and sends the ACK back on the same port as we send the message, why isn’t GE offering that as an option.

      Russ Ross
      RussRoss318@gmail.com

Viewing 5 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,127
Forums
28
Topics
9,300
Replies
34,445
Topic Tags
288
Empty Topic Tags
10