sockets

Kenneth Brody kenbrody at spamcop.net
Tue May 15 07:59:10 PDT 2012


On 5/15/2012 10:44 AM, Ed Hilovsky wrote:
>         ■ If: yr ne "0"                                                         ■
>         Then: yv=socketerror();show "@Error"<yv;end
>
> Doesn't display a thing. It is blank.

What about the rest of the questions I asked?

> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at spamcop.net]
> Sent: Tuesday, May 15, 2012 10:23 AM
> To: lgf at lgfcomputers.net
> Cc: 'filepro-list'
> Subject: Re: sockets
>
> 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