× 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.



Scott:

I'd be very interested in seeing this routine.

david

> -----Original Message-----
> From: Scott Klement [mailto:infosys@klements.com]
> Sent: Friday, June 04, 1999 9:22 AM
> To: RPG400-L@midrange.com
> Subject: Re: TCP/IP Sockets
> 
> 
> You can do this with the select() call from the socket API.   It
> allows you to wait for input/output on one or more sockets, with
> an optional timeout given.
> 
> Its also useful when you're waiting for i/o on more than one socket
> and want to take whatever data arrives first (much the way you might
> use data queues with display/icf files)
> 
> Unfortunately, select() is a little difficult from RPG, because in C
> you use "macros" to set/clear/check the value of a "descriptor set"
> (a set of sockets that you want to check for data on)
> 
> I've made RPG sub-procedures that I use instead of the C macros
> when using select() from RPG.  If you need them, let me know and
> I'll post them..
> 
> Scott Klement
> Information Systems Manager
> Klement's Sausage Co, Inc.
> 
> 
> Chris Bipes <ChrisB@cross-check.com> wrote:
> > First I want to thank everyone for their support.  I have my socket
> >  client
> > working, with one minor glitch.  It will wait forever for a response
> >  from
> > the socket server.  I want to timeout after xx seconds.  the send an
> > receiver timer options are not supported.  Once I have connected to
> >  the
> > server, how does one timeout if the server does not respond to a
> >  request.
> > My program just sits at TIMW.  I am using an "AF_INET / SOCK_STREAM"
> > connection.  I am the client.  If the server is hung, I want to clos
> >  the
> > connection and establish a new connection then resend the transactio
> >   I do
> > not now how to control this timeout value.  Any suggestions will be
> > appreciated.
> >
> > Thanks again,
> >
> > 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
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * * * * *
> * This is the RPG/400 Discussion Mailing List!  To submit a 
> new         *
> * message, send your mail to "RPG400-L@midrange.com".  To 
> unsubscribe   *
> * from this list send email to MAJORDOMO@midrange.com and 
> specify       *
> * 'unsubscribe RPG400-L' in the body of your message.  
> Questions should *
> * be directed to the list owner / operator: 
> david@midrange.com          *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * * * * *
> 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.