[fpc-pascal]SetSocketOptions() in Linux
karagian at it.teithe.gr
Wed Dec 4 10:46:32 CET 2002
> G'day all,
> This has been a problem for me for a couple of years and I have only
> just solved it. (It was not a high priority).
> S is a Socket.
> I wanted to
> I looked at heaps of C source, and they did it with an int
> variable. So I used
> Temp : Integer;
> Temp := 1;
> This never worked, but it turns out that
> Temp = 1;
> Both work fine.
> Why does the first one fail and both the second ones work.
> What am I missing.
> I have solved the problem and I'm much happier for it, but I'd like
> to know what basic concept I'm not grasping.
> Save the Forests \ / ASCII RIBBON CAMPAIGN
> Burn a Greenie. X AGAINST HTML MAIL
> / \
I have used SetSocketOptions the first way (using an integer variable) and
it works fine for me...
More information about the fpc-pascal