[fpc-devel]Re: Socket() call - fixed now, thanks

Marco van de Voort marcov at stack.nl
Mon Mar 22 07:48:03 CET 2004

> Thanks for the help with the Socket() call.  My program now gets past that
> point and fails on the SetSocketOptions() call.  This time I found the bug
> myself.  The fpSetSockOpt is passed a variable called Level which it never 
> uses in the system call.  I attached a simple diff to fix the problem.

Committed, thanks.
> In my last example code it was mentioned I shouldn't use integer for a 
> file handle, but instead I should use cint.  I see there are other cxxx 
> types defined.  I'll be making use of them.

They originate in unit baseunix, which includes rtl/$OS/ctypes.inc

More information about the fpc-devel mailing list