sockets

Kenneth Brody kenbrody at spamcop.net
Tue May 15 07:22:43 PDT 2012


On 5/15/2012 9:27 AM, Ed Hilovsky wrote:
> Filepro version 5.7   under Linux Centos 5
>
> I need help on the sockets. I use the following:
>
>         │ If:
>         Then: yq=socket( )

What is the value of "yq" after executing this?

>         │ If:
>         Then: yr=connect(yq,"5012",yp)

What is the value of "yp", and is there something listening on port 5012 on 
that system?

>         │ If: yr eq "0"
>         Then: goto submit
>         │ If: yr ne "0"
>         Then: show "@Server Down";end
>
> And then close it by:
>
> Then: yr=socketclose(yq)
>
> I am now getting a "server down" which leads me to believe I have run out of
> sockets.

That is only one of many possible reasons.

What does SOCKETERROR() say was the error?

> Anything else that should be done ?

See all of the above.

-- 
Kenneth Brody


More information about the Filepro-list mailing list