- From: Thomas Dreibholz <dreibh AT exp-math.uni-essen.de>
- To: Harold Hunt <harold_diameter AT yahoo.com>, discussion AT sctp.de
- Subject: Re: [SCTP-Discussion] non-blocking connect
- Date: Mon Mar 31 14:32:01 2003
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University of Essen, Institute for Experimental Mathematics
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Montag, 31. März 2003 13:04 schrieb Harold Hunt:
>
Hello,
>
>
I am using socketapi-1.0.1 and sctplib-1.0.0-pre19 . I am using the c++
>
api. Can we do a non-blocking connect ? If so how ?
Yes, simply call mySocket->setBlockingMode(false) before connecting. This
makes the socket non-blocking.
Note, that the C++ API currently does not offer an ext_select() wrapper, so
you have to obtain the fd for ext_select() using fd =
mySocket->getSystemSocketDescriptor() and then call ext_select() to wait for
connection establishment.
Best regards
- --
=======================================================================
Dipl.-Inform. Thomas Dreibholz
University of Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
- -----------------------------------------------------------------------
E-Mail:
dreibh AT exp-math.uni-essen.de
Homepage:
http://www.exp-math.uni-essen.de/~dreibh
=======================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+iDTm32BbsHYPLWURAuJXAKCfbWcEqKYAPhYuIrXLPmS2ipPdJACglUbq
YAi75u3d6Qlrq0ubim1KuQE=
=kcfp
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.