sockets
Ed Hilovsky
lgf at lgfcomputers.net
Tue May 15 07:44:30 PDT 2012
■ If: yr ne "0" ■
Then: yv=socketerror();show "@Error"<yv;end
Doesn't display a thing. It is blank.
--
Ed Hilovsky
LGF Computers
Main Office : (724) 463-7633
Toll Free : (800) 653-8479
Fax Number : (866) 448-5415
Cellular : (412) 289-1773
email lgf at lgfcomputers.net
-----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