Sockets

Kenneth Brody kenb at fptech.com
Wed May 16 10:50:02 PDT 2012


On 5/16/2012 1:04 PM, Ed Hilovsky wrote:
> Since I still haven't received any documentation regarding the socket
> license I purchased, I would like to get confirmation on the following:

I already sent you documentation on the new 5.7 socket functions, as you
asked.  Given that you are already using socket/connect/closesocket in your
processing, I am assuming that you have documentation on the 5.6 functions.

> A rclerk process  starts another rclerk in a different file that will
> open / send/ receive / close the socket. Once this second rclerk exits
> back to the original process will the socket license be released and
> available for use by a completely different user / process ?

When *clerk/*report exits, all licenses it had in use are released, as I
previously said.

> Is there a way to tell if all socket license are in use ?

Yes.  As I previously said, SOCKET() will return a null string if you do not
have any socket license available.

> I can tell if the server is down but will I be able to tell if the
> connections failed due to all license in use ?

The connect will never fail because of a filePro license issue, as you would
have never obtained a socket handle in the first place.

> If so, I can sleep for a second and try again.

-- 
Kenneth Brody


More information about the Filepro-list mailing list