- From: Thomas Dreibholz <dreibh AT iem.uni-due.de>
- To: agodoi AT matrix.com.br, discussion AT sctp.de
- Subject: Re: Fwd:RE: [SCTP-Discussion] sctp_shutdown() problem ... ShutdownComplete indication does not arrive
- Date: Fri Feb 3 12:22:04 2006
- List-id: SCTP Discussions <discussion.sctp.de>
On Friday 03 February 2006 09:47, you wrote:
>
Hi!
>
>
Can I use sctp_eventLoop() or sctp_getEvents() in a multithread
>
application?
No, if you have multiple threads, you have to use sctp_extendedEventLoop()
and
provide functions for locking and unlocking a mutex. See the socket API
source code, file sctpsocketmaster.cc, method SCTPSocketMaster::run() for how
to handle multi-threading.
Alternatively, you can use the socket API. This API is thread-safe.
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
=======================================================================
Attachment:
pgp0ZwMEFWdGF.pgp
Description: PGP signature
Archive powered by MHonArc 2.6.19+.