On 3/3/23 22:33, Sebastian Welton wrote:
On Thu, 2 Mar 2023 06:57:01 -0600, Jay Maynard <[email protected]> wrote:

I haven't tried to write anything in Rexx, let alone a TCP server. I'd
probably be inclined to use Go for that, though.

Start here and it is reasonably simple:

- TCPIP.SEZAINST(RSSERVER)
- TCPIP.SEZAINST(R6SERVER)

Thanks for the links. Now, there is code duplication between the two modules. How would one go about externalizing the common code to a module?

The method of maintaining the socket descriptor list is crude and highlights the lack of data structures in classic REXX.

Writing a non-blocking, multiplexing TCP server in Python is simple https://docs.python.org/3/library/selectors.html


Sebastian

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to