Am Samstag, 9. Mai 2009 20:25 schrieb dmitry boyarintsev:
> > How can I find out if a socket connection in a nonblocking mode is
> > established?
>
> according to the man page, you're doing correct path:
> http://linux.die.net/man/2/connect
> i did use non-blocking connection for both Linux and OSX
> How can I find out if a socket connection in a nonblocking mode is
> established?
according to the man page, you're doing correct path:
http://linux.die.net/man/2/connect
i did use non-blocking connection for both Linux and OSX, and it did
work as described: by "selecting" sockets for writting.
On Sat, 9 May 2009, Rainer Stratmann wrote:
> >Select does *not* tell you if a file descriptor is writeable or readable.
> >It tells you if the read/write operation will block.
> >This is something subtly different.
> This is interesting for blocking mode.
> But since you can switch to nonbloc
>Select does *not* tell you if a file descriptor is writeable or readable.
>It tells you if the read/write operation will block.
>This is something subtly different.
This is interesting for blocking mode.
But since you can switch to nonblocking mode every operation will return
immediately.
Here
On Sat, 9 May 2009, fpcl...@silvermono.co.za wrote:
> According to the FPC rtl.pdf version 2.2.2 Doc version 2.1 of June 2008, page
> 165, states, and I quote: "Description:FPSelect checks one of the file
> descriptors in the FDSets to see if its status changed."
I'll change it to something c
hello Rainer,
do you check the socket's writability by fpFD_ISSET(sck, fds) ?
thanks,
dmitry
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
According to the FPC rtl.pdf version 2.2.2 Doc version 2.1 of June 2008, page
165, states, and I quote: "Description:FPSelect checks one of the file
descriptors in the FDSets to see if its status changed."
//-
On Saturday 0
On Sat, 9 May 2009, Jonas Maebe wrote:
>
> On 09 May 2009, at 09:38, Rainer Stratmann wrote:
>
> >To find out if a nonblocking socket has connected I use the following piece
> >of
> >code:
> >
> >With windows that works, but with linux I get alwas the result that the
> >socket
> >is writable.
On 09 May 2009, at 09:38, Rainer Stratmann wrote:
To find out if a nonblocking socket has connected I use the
following piece of
code:
With windows that works, but with linux I get alwas the result that
the socket
is writable.
function is_writable_socket( sck : integer ) : boolean;
var
On Sat, 9 May 2009, Rainer Stratmann wrote:
> Am Samstag, 9. Mai 2009 12:17 schrieb Michael Van Canneyt:
> > On Sat, 9 May 2009, Rainer Stratmann wrote:
> > > To find out if a nonblocking socket has connected I use the following
> > > piece of code:
> > >
> > > With windows that works, but with
Am Samstag, 9. Mai 2009 12:17 schrieb Michael Van Canneyt:
> On Sat, 9 May 2009, Rainer Stratmann wrote:
> > To find out if a nonblocking socket has connected I use the following
> > piece of code:
> >
> > With windows that works, but with linux I get alwas the result that the
> > socket is writabl
On Sat, 9 May 2009, Rainer Stratmann wrote:
> To find out if a nonblocking socket has connected I use the following piece
> of
> code:
>
> With windows that works, but with linux I get alwas the result that the
> socket
> is writable.
>
> function is_writable_socket( sck : integer ) : bool
12 matches
Mail list logo