MazWoz / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

Source or Destination Port bigger than 32767 #112

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I need to pass 0xc002 (10100000 11000010) as optional Source Port for OMA-DM 
push notification. Since in java there is no unsigned byte, I tried to cast 
0xc002 back to short (11111111 11111111 10100000 11000010 in hope that 

new OptionalParameter.Short(OptionalParameter.Tag.SOURCE_PORT, (short) 41154) 

will properly handle last 2 bytes to pdu builder. But it did not work. 

Any advise?

Thanks,

Fike.

Original issue reported on code.google.com by ffal...@adastragroupinc.com on 17 Sep 2011 at 10:28