× 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.




Hello,

the client is a Windows application, which connects (through a socket, I
guess) to a listener program on the iSeries.

So as far as I can see it, the job is not submitted by the client, but by
the listener program.

When the listener program calls the accept() API, the 2nd parameter to accept() is a sockaddr data structure that will contain the IP address of the socket that has connected to it.


You can also retrieve this information later by passing the socket descriptor that's connected to the remote computer to the getpeername() API.

The IP address that these APIs return will be in binary format (i.e., x'7F000001' instead of 127.0.0.1) but you can convert it to human-readable ("dotted") format using the inet_ntoa() API.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.