JoeOn 8/27/2009 at 3:53 PM, in message <4A96ABF5.9C78.0031.0@xxxxxxxxx>,
Ryan - Your example of ports matches what I am seeing.<OF05FD81BA.AA14FFE5-ON8525761F.006B2FB4-8525761F.006C9AB4-EfGSZ7ftWEp35B+ag
Jerry - We have two setups. In the first scenario, we are acting as a
server and receiving operative notes from another hospital. In the
scenario, we are the client and will return the signed operative notes
to the other hospital. Our network folks opened up two ports between
two hospitals. One for our socket server and one for their socket
Right now, I am working on our server piece and have not touched our
piece that will connect to their server. That being said, I start our
server job and the other hospital connects w/o any trouble. Our server
then reads data until it gets an x'1c'. At that point in time, the
builds and returns an acknowledgment record using send() and using the
connection that received the HL7 message. I have tried sending it both
translated and untranslated. The receiving side says they do not see
However, netstat and the com trace I did show that it went.
We have a conference call tomorrow to try to work this out. I'll post
Thanks for the replies!
University of Alabama Health Services Foundation
500 22nd Street South, Suite 308
Birmingham, AL 35233
This e-mail is intended for the sole use of the individual(s) to whom it
addressed, and may contain information that is privileged, confidential
exempt from disclosure under applicable law. You are hereby notified
any dissemination, duplication or distribution of this transmission by
someone other than the intended addressee or its designated agent is
strictly prohibited. If you receive this e-mail in error, please notify
immediately by replying to this e-mail.
On 8/27/2009 at 2:46 PM, in message
"Question - when the tunnel was created between "us" and "them", a
port was designated for traffic coming to us (i.e., to our listener) and
another for return traffic (to their listener). I noticed on netstat
the local port is correct, but the remote port varies (and is not one
was specified). Since the socket connects, and we receive data, and I
returning data through this same socket connection......do the remote
need to be open for them to receive?"
I'm not sure why the tunnel was created to use two ports (one for
and one for receiving). Unless there are underlying reasons for doing
this, this is (to me) more complex than need be.
To my understanding a socket connection is a one to one connection that
has to be able to send and receive data and acknowledge when it does
activities at both ends of the connection. Otherwise you can't guarantee
the integrity of the transmission.
When you connect (in listen mode) to the server, (it sounds like) all
reads and writes are going though the port you are listening on. (That's
the way my programs work.) But with two ports (one to send and one to
receive), you would need to program your listener to detect receipt of
ack on the other port, and coordinate the send/receive between your
and receiver programs.
(If I am way off base here someone please chime in and enlighten me!)
Gerald Kern - MIS Project Leader
Lotus Notes/Domino Administrator
IBM Certified RPG IV Developer
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623-4299
This e-mail message, including any attachments, is for the sole use of
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this message.