Changeset 78 in tmcsimulator for branches/fep_rpc_client/FEPClient.cpp


Ignore:
Timestamp:
10/01/2017 05:50:44 PM (9 years ago)
Author:
jtorres
Message:

All green dots are showing. This is a checkpoint before adding dynamic data packing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fep_rpc_client/FEPClient.cpp

    r77 r78  
    8787 
    8888                /* for each LDS in the Line.... (constructs the short_answer message) */ 
    89                 for (j = 0; j < lines.at(i).ldsNum; j++) 
     89                for (j = 0; j < lines.at(i).lds.size(); j++) 
    9090                { 
    91                     cout << "Station num " << j << endl; 
    9291                        fep_shortanswer fsa; 
    93                         int index = lines.at(i).ldsIndex[j]; 
    94  
     92                        int index = lines.at(i).ldsIndex.at(j); 
     93                        cout << "LDS index: " << index << endl; 
    9594                        // msg: oa, od, ldsMap.at(index).dataPack, od, ff 
    9695                        fsa.msg.message_len = ldsMap.at(index).length + 2; 
     
    136135        /* Create RPC Client to communicate with ATMS */ 
    137136        cout << "Creating RPC Client" << endl; 
    138         clnt = clnt_create(host, 100090, /*103121,*/ 32, "tcp"); 
     137        clnt = clnt_create(host, /*100090,*/ 103121, 32, "tcp"); 
    139138        cout << "Client created" << endl; 
    140139        /* Check if client creation failed */ 
Note: See TracChangeset for help on using the changeset viewer.