Re: [HAPI-devel] how to TCP Client that doesn't send messages

2017-04-21 Thread Pablo Pazos
You can create a broker that does what you need. In hl7 who sends is the client. On Apr 20, 2017 8:39 PM, "Lucila Armentano" wrote: Thanks but I need to connect to an analyzer that only accepts TCP Client connections. I tested it with Hercules app, and when I connected Hercules as a TCP client I

Re: [HAPI-devel] how to TCP Client that doesn't send messages

2017-04-20 Thread Lucila Armentano
Thanks but I need to connect to an analyzer that only accepts TCP Client connections. I tested it with Hercules app, and when I connected Hercules as a TCP client I started to receive ORU messages. I was reading the HAPI doc and I believe that I could create a Receiver over the client connection o

Re: [HAPI-devel] how to TCP Client that doesn't send messages

2017-04-20 Thread Christopher Speck
What you're describing is a Server not a Client. What you probably want is HL7Service, by using HapiContext.newServer() For example usage see http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html -- Christopher Speck > On Apr 20, 2017, at 3:56 PM, Lucila Armenta