13 |
#include "common.h" |
#include "common.h" |
14 |
#include "util.h" |
#include "util.h" |
15 |
|
|
|
#include <iostream> |
|
16 |
|
|
17 |
using namespace std; |
using namespace std; |
18 |
|
|
|
|
|
19 |
namespace SmsPdu |
namespace SmsPdu |
20 |
{ |
{ |
21 |
|
|
311 |
if (UDHI) |
if (UDHI) |
312 |
{ |
{ |
313 |
int udh_len = (*it++); |
int udh_len = (*it++); |
|
cout << "UDH_LEN:" << udh_len << endl; |
|
314 |
it += udh_len; //just ignore the User Data Header |
it += udh_len; //just ignore the User Data Header |
315 |
data_len -= udh_len; |
data_len -= udh_len; |
316 |
|
|
317 |
shift_start = udh_len+1; //make the 8to7bit decode start with the right shift level |
shift_start = udh_len+1; //make the 8to7bit decode start with the right shift level |
318 |
} |
} |
|
cout << hex<< (int)(*it) << endl;; |
|
319 |
|
|
320 |
|
|
321 |
vector<unsigned char> user_data; |
vector<unsigned char> user_data; |