Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Proc question (and a bit about ports)
Message
De
24/08/2007 10:34:08
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Class Proc question (and a bit about ports)
Divers
Thread ID:
01250210
Message ID:
01250210
Vues:
62
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)  && Define string to pass to GetData

THIS.oSock.GETDATA(@strData)

* Testing code to parse HL7 billing data from Medinotes Client to EM tables
=Convert_HL7_Billing_Data(strData)
* ? strData

ENDPROC
Répondre
Fil
Voir

Click here to load this message in the networking platform