Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-03

Re: Socket() call - fixed now, thanks

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lloyd B. Park

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 ------------------------------------

Reply by email

Marco van de Voort
to Lloyd B. Park
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

Reply by email