Changeset 2710 in ntrip for trunk/BNC/GPSS


Ignore:
Timestamp:
Nov 18, 2010, 12:44:38 PM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/GPSS/gpssDecoder.cpp

    r2709 r2710  
    2121using namespace std;
    2222
    23 typedef struct epochHeader {
     23struct t_epochHeader {
    2424  double t_epoch;
    2525  int    n_svs;
    26 } EPOCHHEADER;
     26};
    2727
    2828// Cyclic Redundancy Check
     
    8080    if      (_buffer.length() > 0 && char(_buffer[1]) == 0x00) {
    8181
    82       int reqLength = 2 + sizeof(recordSize) + sizeof(EPOCHHEADER);
     82      int reqLength = 2 + sizeof(recordSize) + sizeof(t_epochHeader);
    8383
    8484      if (_buffer.length() >= reqLength) {
    85         EPOCHHEADER epochHdr;
     85        t_epochHeader epochHdr;
    8686        memcpy(&epochHdr, _buffer.data() + 2 + sizeof(recordSize),
    8787               sizeof(epochHdr));
     
    9191        if (_buffer.length() >= reqLength) {
    9292
    93           int checkLen = 2 + sizeof(recordSize) + sizeof(EPOCHHEADER) +
     93          int checkLen = 2 + sizeof(recordSize) + sizeof(t_epochHeader) +
    9494                         epochHdr.n_svs * sizeof(t_obs);
    9595          memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
Note: See TracChangeset for help on using the changeset viewer.