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



David,

I'm interested in this problem so that it doesn't happen to me.

How is it that you are closing socket 0 if you don't have a handle to it?

Normally, in C anyway, I would say something like socket = blah blah...
then later
close (socket)
so I don't see how it could close socket 0, unless it is a problem either
specific to your code or RPG or RPG's implementation of sockets?

Regards,

Jim Langston

-----Original Message-----
From: David Gibbs [mailto:dgibbs@mks.com]

Folks:

<SNIP>

Because our remote server will disconnect if there is no activity for a
certain period of time, we have code that allows for reconnect... but before
we try to connect (even the first time) we close the currently open socket.
When we didn't open the socket, we close socket 0.  Socket 0, unfortunately,
didn't belong to us.  It belonged to the remote command job.

Solution was to init our programs socket variable to -1 so we can detect if
we've opened it or not.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.