Re: [fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Paul Davidson
Thanks, Marco, Anton. Select it is! On Sep 14, 2005, at 9:08, Marco van de Voort wrote: Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t

Re: [fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Marco van de Voort
> Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work > with Darwin (FreeBSD). > > type >p : pointer; >t : TimeVal; > > t.tv_sec := mSec div 1000; > t.tv_usec := ( mSec mod 1000 ) * 1000; > p := @t; > if SetSocketOptions( fSocket, SOL_SOCKET, SO_SNDTIMEO, p, SizeOf( t

Re: [fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Anton Tichawa
Paul Davidson wrote: Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t; if SetSocketOptions( fSocket, SOL_SOCKET, SO_SNDTIMEO, p, SizeOf( t

[fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Paul Davidson
Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t; if SetSocketOptions( fSocket, SOL_SOCKET, SO_SNDTIMEO, p, SizeOf( t ) ) <> 0 etc returns