src/libtsduck/dtv/tsTablesLogger.cpp
void ts::TablesLogger::close()
{
    if (!_exit) {

        // Pack sections in incomplete tables if required.
        if (_pack_and_flush) {
            _demux.packAndFlushSections();
        }
        if (_fill_eit) {
            _demux.fillAndFlushEITs();
        }

        // Close files and documents.
        closeXML();
        if (_binfile.is_open()) {
            _binfile.close();
        }
        if (_sock.isOpen()) {
            _sock.close(_report);
        }

        // Now completed.
        _exit = true;
    }
}
//----------------------------------------------------------------------------
// Close all operations, flush tables if required, close files and sockets.
//----------------------------------------------------------------------------
Close all operations, flush tables if required, close files and sockets.
Close all operations flush tables if required close files and sockets .
void ts::TablesLogger::close()
{
    if (!_exit) {
        if (_pack_and_flush) {
            _demux.packAndFlushSections();
        }
        if (_fill_eit) {
            _demux.fillAndFlushEITs();
        }
        closeXML();
        if (_binfile.is_open()) {
            _binfile.close();
        }
        if (_sock.isOpen()) {
            _sock.close(_report);
        }
        _exit = true;
    }
}
void ts :: TablesLogger :: close ( ) { if ( ! _exit ) { if ( _pack_and_flush ) { _demux . packAndFlushSections ( ) ; } if ( _fill_eit ) { _demux . fillAndFlushEITs ( ) ; } closeXML ( ) ; if ( _binfile . is_open ( ) ) { _binfile . close ( ) ; } if ( _sock . isOpen ( ) ) { _sock . close ( _report ) ; } _exit = true ; } }
Close all operations, flush tables if required, close files and sockets.
Close all operations flush tables if required close files and sockets .
// Pack sections in incomplete tables if required. // Close files and documents. // Now completed.