Package com.cloudhopper.smpp.tlv

Examples of com.cloudhopper.smpp.tlv.Tlv


        pdu0.setDestAddress(new Address((byte)0x00, (byte)0x01, "9695"));
        pdu0.setEsmClass((byte)0x00);
        pdu0.setRegisteredDelivery((byte)0x01);
        pdu0.setDataCoding((byte)0x00);
       
        Tlv tlv0 = new Tlv(SmppConstants.TAG_MESSAGE_PAYLOAD, "Test".getBytes("ISO-8859-1"));
        pdu0.addOptionalParameter(tlv0);
       
        ChannelBuffer buffer = transcoder.encode(pdu0);
       
        String expectedHex = "000000300000010300000000000000000001013535353237313030303000000139363935000001000424000454657374";
View Full Code Here

TOP

Related Classes of com.cloudhopper.smpp.tlv.Tlv

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.