×
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,
I have ported a self-written C program to my AS/400 (yes, AS/400, 9401-150, running V4R5). The program is looping over recvfrom() to receive data from an UDP socket. If data is received, the program outputs parsed data via printf() to stdout for debugging purposes. In practice, the number of packets received is less than five per second. Runs fine, does stuff like expected. So far so good.
I can't end this program with F3 in the "fake terminal". The keyboard gets locked (like the AS/400 does when it's busy) and thus doesn't accept any keys. Even pressing reset and immediately F3 yields no program ending: The keyboard gets locked again.
I read the two Unix porting guides:
- UNIX C Applications Porting to AS/400 Companion Guide.pdf
- UNIX C Applications Porting to AS/400.pdf
But I haven't found any mentioning how to handle a similar situation. I also browsed through the ILE C/C++ Programmer's Guide.pdf, with also no helpful findings.
May I kindly ask for advice? Thanks!
:wq! PoC
PGP-Key: DDD3 4ABF 6413 38DE -
https://www.pocnet.net/poc-key.asc
As an Amazon Associate we earn from qualifying purchases.
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.