|
You presume correctly.
I guess I'm not understanding why you keep mentioning the IP address. What
difference would that make? When I have the socket server running on the PC,
the program works. If I stop the socket server on the PC two seconds later and
then rerun the program again, it appears to work but doesn't really. I can't
imagine how the IP address would change on the same interactive session in the
space of 20 seconds unless I'm totally not understanding this process.
Simon Coulter <shc@xxxxxxxxxxxxxxxxx> wrote:
On 06/02/2006, at 9:11 AM, Dave Johnson wrote:
> * Retrieve IP Address of PC
> C Eval I_Net_Adr = RtvNetAds(Device)
> C Eval I_Net_Adr = %trim(I_Net_Adr)
> C Eval sin_addr = addrCvtr(I_Net_Adr)
I presume you are aware that this will only work when run from an
interactive session (i.e. with a display device)?
Run this code in debug and see what values you get for I_Net_Addr and
sin_addr prior to the connect() call.
Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software AS/400 Technical Specialists
http://www.flybynight.com.au/
Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\
Fax: +61 3 9419 0175 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.