SCTP Discussions

Text archives Help


[SCTP-Discussion] Global variables in sctplib


Chronological Thread 
  • From: Oleg Levy <buskila AT gmail.com>
  • To: discussion AT sctp.de
  • Subject: [SCTP-Discussion] Global variables in sctplib
  • Date: Mon Jan 9 23:42:01 2006
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KSUKIfGHct+HjWuee2CW14m021svslVDFgL2PK602lnpqSrIp2Fi8YM4JkfEnhh0UquFt5KV3rmaBUVmFxkGoVFwOiYVDSYc+gd9KJBnqR3S0+LRYuYpsnAmxlmMxdHwNcty+s9Oexxec9ih0ikxUkK0SApsyT6GgFXc6Gy9kTE=
  • List-id: SCTP Discussions <discussion.sctp.de>

I was wondering about the use of global variables in the library. It seems that many functions use mdi_readXXXXXXX() functions to access state information for various blocks of the library and in turn, the currentAssociation variable is used by the mdi_readXXXXXXX() functions.
 
I'd like to understand the reasoning behind this and also, how multi threaded applications could work given the fact that the currentAssociation variable is shared between all threads (if i understand this correctly)
 
thanks
 



Archive powered by MHonArc 2.6.19+.

Top of page