× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi David -

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.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.