×
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,
after being busy with other things for quite some time, I'm coming back to getting along with socket programming in C on OS/400. Quite old, though: V4R5. This intentionally.
Half a year ago, I finished a UDP socket based "daemon" which works just great.
https://github.com/PoC-dev/asterisk-translate-clid
But I struggle with getting a simple TCP server to run based on that code. It compiles fine, but emits a
bind(): failed: The value specified for the argument is not correct.
on the bind() call at line 166.
Server code:
https://leela.pocnet.net/~poc/txrepd.c
If you want to compile and test-run yourself, you need to add an entry to the TCP services table: GO CFGTCP => 21 => 1. The entry is expected to be "sa-txrep", as to be seen in line 151 of the code.
When I compare the code steps with the TCP Server example code from Chris Hird, I can't see any obvious error.
https://github.com/ChrisHird/OSTOOLS/blob/master/QCSRC/TESTSVR.C
Any hints well appreciated! Thanks!!
:wq! PoC
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.