Hi
I would simply create a webservice and publish it. The IP will remain the
same for both input and output and you can have an input program service the
request while and output app sets up the response. You can find examples in
Websphere for ISeries.
Regards
Faizulla Khan
fzkhan@xxxxxxxxxxx
-
On Wed, 4 Jul 2007 08:36:51 -0400, "David Scorca" <dscorca@xxxxxxxxx>
wrote:
I want to create two RPG programs, both connected to the same external IP
address and port number and both sharing the same internal port number.
Specifically I want one program to be sending out over the port and I want
a
different program to receive the tcp/ip packet(s) from the remote system in
response to the sent packet.
Is this possible, if so could you simply explain what needs to be done, and
finally can you reference me to any examples?
A TCP/IP socket is uniquely defined by the combination of the source
IP address, source port, target IP address, and target port. So
you're not going to be able to have two separate programs each opening
its own socket with the same IP addresses and ports. You're going to
somehow share one socket between the two programs. Don't ask me how
to do that. The one socket application I've written had all of the
sending and receiving in one program so the issue didn't arise.
Ken
http://www.kensims.net/
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.
------------------------------
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) digest list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
End of RPG400-L Digest, Vol 6, Issue 697
****************************************
As an Amazon Associate we earn from qualifying purchases.