NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 2472


Ignore:
Timestamp:
Feb 20, 2007, 12:23:20 PM (11 years ago)
Author:
hiwi-laier
Message:

Build kernel supported version of TPoverSCTP if "SCTP_KERN"
is defined in the make environment. Also add previously missed
implementation for ~TPoverSCTP. The "-lsctp" is ugly, but it
seems that linux doesn't have all sctp symbols in libc by
default.

Location:
protlib/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protlib/trunk/src/Makefile

    r2233 r2472  
    8585endif
    8686
     87ifdef SCTP_KERN
     88SCTP_LIBLD      = -lsctp
     89SCTP_OPTIONS    = -D_USE_SCTP
     90CFLAGS          += $(SCTP_OPTIONS)
     91TP_SCTPOBJ      = tp_over_sctp.o
     92FILTER_SCTP_SOURCES=
     93endif
    8794
    8895# set variable only if /usr/include/libipq exists (for debian-based systems)
  • protlib/trunk/src/tp_over_sctp.cpp

    r2471 r2472  
    223223        // terminate all receiver and sender threads that are still active
    224224        terminate_all_threads();
     225}
     226
     227TPoverSCTP::~TPoverSCTP()
     228{
     229  init= false;
     230
     231  Log(DEBUG_LOG,LOG_NORMAL, tpparam.name,  "Destructor called");
     232
     233  QueueManager::instance()->unregister_queue(tpparam.source);
    225234}
    226235
Note: See TracChangeset for help on using the changeset viewer.