|
Yes you can, I agree. I support 200 simultaneous connections. His code is set to only allow one connection. If that is not closed correctly then he cannot accept a second. Take another look at his RPG listen statement. He specified 1 for max connections. I was stating that he must close and delete the Socket Descriptor before he can accept a second connection. Your step 6 is critical to accepting a new connection. Christopher K. Bipes mailto:ChrisB@Cross-Check.com Operations & Network Mgr 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: Scott Klement [mailto:klemscot@klements.com] Sent: Tuesday, July 24, 2001 7:28 AM To: 'MIDRANGE-L@midrange.com' Subject: RE: This simply isn't true. You can accept more than one connection without closing the socket in between. I do it every day. The pseudocode should look something like this: 1) call socket() to get a new descriptor 2) Call bind() to bind to a port 3) call listen() to tell the system you want to accept connections 4) call accept() to get a new connection from a client 5) do something with the client 6) close the client's descriptor (the one returned by accept()) 7) go back to step 4. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.