SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] Is SCTP-1.0.5 library supports multi-threaded application .........


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: Nigar <nigar AT teledna.com>
  • Cc: sctp-discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] Is SCTP-1.0.5 library supports multi-threaded application .........
  • Date: Fri, 8 Feb 2008 22:07:33 +0100
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

Hi Nigar,

you should investigate the
sctp_extendedEventLoop
function.

See the socketapilib for an example how to use the sctplib with multiple threads.

Best regards
Michael

On Feb 8, 2008, at 3:34 PM, Nigar wrote:

Hi All,

Our server-application (is using SCTP 1.0.5 libarary) is multi threaded.

As suggested i have used semaphore locking in application, following are the places where locking and unlock is called:

1) sctp_send_private function -> This function sends the packet to client-application
The snap shot were lock and unlock is added is given below:
lockSempahore ()
se_ulp_send ()
unlockSemaphore ()

2) adl_extendedEventloop -> This function pools on fd to receive the SCTP packets from the client-application
The snap shot were lock and unlock is added is given below:
lockSemaphore ()
dispatch_event ()
unlockSemaphore ()

3) adl_extendedEventloop -> when there is no event dispatch_timer is getting called.
The snap shot were lock and unlock is added is given below:
lockSemaphore ()
dispatch_timer ()
unlockSemaphore ()

Even with this changes the server-application is dumping, when checking the tsn values in the lists.

Is the approach what i have followed for locking in application is correct or not?
Please suggest me if i have missed out the locking in some critical sctp library functions.

Is it required we have to call lock functions where the packets are checked for which they were no "SACK". Please guide me.

Regards
Nigar

_______________________________________________
sctp-discussion mailing list
sctp-discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/sctp-discussion





Archive powered by MHonArc 2.6.19+.

Top of page