I've got the communications from the third-party client to my server/listener working. Got a question about this Proc though. I don't think the call specifically to the HL7 process should be in here, but how do I handle that? How can the DataArrival proc know how identify something coming over the port to know what to do with it?
Also, when I send to the port that is setup to communicate between the Client and my program, it comes through, but into my program. I'm setup as a listener on the port, then the Client sends an HL7 message, my program picks it up fine, but when I go to send the ACK message (acknowledgement) back through, it seems to just come back to my program. How do I specifically send via the port back to the Client? How can a port be a listener and a sender? Are there codes I need to send to make it work the other way?
PROCEDURE DMSWinsockControlEvents_DataArrival(bytesTotal AS NUMBER) AS VOID ;
HELPSTRING "Occurs when data has been received from the remote computer"
strData = SPACE(256)
THIS.oSock.GETDATA(@strData)
=Convert_HL7_Billing_Data(strData)
ENDPROC