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.

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.

Thank you again.


-- 
------------------------------------
Lloyd B. Park         (330) 672-0384
Administrative Services Building
Kent State University
Kent, OH 44242
------------------------------------
Index: unixsock.inc
===================================================================
RCS file: /FPC/CVS/fpc/rtl/linux/unixsock.inc,v
retrieving revision 1.11
diff -r1.11 unixsock.inc
131c131
<   
fpSetSockOpt:=SocketCall(Socket_Sys_SetSockOpt,S,optname,TSysParam(optval),optlen,0,0);
---
>   
> fpSetSockOpt:=SocketCall(Socket_Sys_SetSockOpt,S,level,optname,TSysParam(optval),optlen,0);

Reply via email to