|
John, I have the following code posted on my personal web site. You may download and use as an example. http://www.cableone.net/ckb62/tcpipsock.rpgle This is a module for controlling the select read/write/except sets. It emulates the "C" functions that are given in the sockets programming book. I create the module in qusrsys and add into a binding directory in qusrsys named sockets. This originally came from Scott Klement on the RPG400-L. http://www.cableone.net/ckb62/tcpipsockp.rpgle This is the copy member with the prototypes for the above module. I reference this with a /copy qusrsys/qrpgsrc.tcpipsockp. http://www.cableone.net/ckb62/oerscks.rpgle This is my application which is still in the testing phase. I have connected to it with a couple of interactive programs running on the same as400, but have not had any testing over the wan. Still waiting for the routers to be connected. The server program should be able to handle up to 200 connections. I still need to add error recovery and the ability to start a new server when the traffic warrants. I am playing with the idea of submitting a new server when over xx connections and ending the listening port. The select function works and should give you a good example. Hope this helps. Christopher K. Bipes mailto:ChrisB@Cross-Check.com Sr. Programmer/Analyst mailto:Chris_Bipes@Yahoo.com CrossCheck, Inc. http://www.cross-check.com 6119 State Farm Drive Phone: 707 586-0551 x 1102 Rohnert Park CA 94928 Fax: 707 586-1884 -----Original Message----- From: John van Woerkom [mailto:J.vanWoerkom@bup.nl] Sent: Wednesday, August 18, 1999 5:48 AM To: 'chrisb@cross-check.com' Subject: TCP/IP Socket Select() dear Chris. I have written a socket program in RPGLE and it works fine , except for the SELECT() function . I can not get it to work properly. Searching the news400 RPG forum I saw that you have a working select function. could you mail me the code for the SELECT() function please. It would be much appriciated. thanks in advance : John van Woerkom
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.