Changeset 1260 in ntrip for trunk/BNS


Ignore:
Timestamp:
Dec 2, 2008, 12:30:54 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1258 r1260  
    420420          int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
    421421          if (len > 0) {
    422             if (ic == 0) { emit(newOutBytes1(len));}
    423             if (ic == 1) { emit(newOutBytes2(len));}
     422            if (_caster.at(ic)->ic() == 1) {
     423              emit(newOutBytes1(len));
     424            }
     425            else {
     426              emit(newOutBytes2(len));
     427            }
    424428            _caster.at(ic)->write(obuffer, len);
    425429          }
  • trunk/BNS/bnscaster.h

    r1249 r1260  
    1515  bool usedSocket() const {return _outSocket;}
    1616  bool crdTrafo() const {return _crdTrafo;}
     17  int  ic() const {return _ic;}
    1718
    1819 signals:
Note: See TracChangeset for help on using the changeset viewer.