Changeset 981 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
Jul 26, 2008, 2:47:36 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r980 r981  
    397397      }
    398398   
    399       if ( _outSocket &&
     399      if ( (_outSocket || _outFile) &&
    400400           (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) ) {
    401401        char obuffer[CLOCKORBIT_BUFFERSIZE];
    402402        int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
    403403        if (len > 0) {
    404           _outSocket->write(obuffer, len);
    405           _outSocket->flush();
     404          if (_outSocket) {
     405            _outSocket->write(obuffer, len);
     406            _outSocket->flush();
     407          }
     408          if (_outFile) {
     409            _outFile->write(obuffer, len);
     410            _outFile->flush();
     411          }
    406412        }
    407413      }
Note: See TracChangeset for help on using the changeset viewer.