Logo Search packages:      
Sourcecode: capisuite version File versions  Download package

void Connection::stop_file_reception (  ) 

called to stop receive mode

This closes the reception file and tells us to ignore further incoming B3 data.

Definition at line 929 of file connection.cpp.

References debug, debug_level, file_for_reception, prefix(), and receive_mutex.

Referenced by disconnect_b3_ind(), FaxReceive::mainLoop(), AudioReceive::mainLoop(), and ~Connection().

{
      pthread_mutex_lock(&receive_mutex);

      if (file_for_reception) {
            file_for_reception->close();
            delete file_for_reception;
            file_for_reception=NULL;
      }

      pthread_mutex_unlock(&receive_mutex);
      if (debug_level >= 2) {
            debug << prefix() << "stop_file_reception finished" << endl;
      }
}


Generated by  Doxygen 1.6.0   Back to index