Esempio n. 1
0
 public SmppDeliverSmReq(ByteBuilder bb) {
   _Header = new SmppHeader(bb);
   int startPosition = 0x10;
   _Body = new BodyPdu(bb, ref startPosition);
   if (bb.Count > startPosition)
     _Tlv = new SmppTlv(bb, startPosition);
 }
Esempio n. 2
0
 internal SmppBindRes(ByteBuilder bb) {
   int startPosition = 0x10;
   _Header = new SmppHeader(bb);
   if (bb.Count > 0x10)
     _Body = new BodyPdu(bb, ref startPosition);
   if (bb.Count > startPosition)
     _Tlv = new SmppTlv(bb, startPosition);
 }
Esempio n. 3
0
        internal SmppDeliverSmRes(ByteBuilder bb)
        {
            int startPosition = 0x10;

            _Header = new SmppHeader(bb);
            _Body   = new BodyPdu(bb, ref startPosition);
            _Tlv    = new SmppTlv(bb, startPosition);
        }
Esempio n. 4
0
 internal SmppSubmitSmRes(ByteBuilder bb) {
   if (bb.Count >= 0x10) {
     _Header = new SmppHeader(bb);
     if (bb.Count != 0x10) {
       int lastBytePosition = 0x10;
       _Body = new BodyPdu(bb, ref lastBytePosition);
       if (bb.Count >= lastBytePosition)
         _Tlv = new SmppTlv(bb, lastBytePosition);
     }
   }
 }
Esempio n. 5
0
        public SmppDeliverSmReq(ByteBuilder bb)
        {
            _Header = new SmppHeader(bb);
            int startPosition = 0x10;

            _Body = new BodyPdu(bb, ref startPosition);
            if (bb.Count > startPosition)
            {
                _Tlv = new SmppTlv(bb, startPosition);
            }
        }
Esempio n. 6
0
        internal SmppBindRes(ByteBuilder bb)
        {
            int startPosition = 0x10;

            _Header = new SmppHeader(bb);
            if (bb.Count > 0x10)
            {
                _Body = new BodyPdu(bb, ref startPosition);
            }
            if (bb.Count > startPosition)
            {
                _Tlv = new SmppTlv(bb, startPosition);
            }
        }
Esempio n. 7
0
 internal SmppSubmitSmRes(ByteBuilder bb)
 {
     if (bb.Count >= 0x10)
     {
         _Header = new SmppHeader(bb);
         if (bb.Count != 0x10)
         {
             int lastBytePosition = 0x10;
             _Body = new BodyPdu(bb, ref lastBytePosition);
             if (bb.Count >= lastBytePosition)
             {
                 _Tlv = new SmppTlv(bb, lastBytePosition);
             }
         }
     }
 }
Esempio n. 8
0
 internal static byte[] GetPduByteArray(ref SmppHeader Header, ISmppBasic Body, SmppTlv Tlv) {
   byte[] c = null;
   byte[] buffer2 = null;
   byte[] arrayObj = null;
   buffer2 = Body.ToByteArray();
   Header.CommandLength = 0x10 + buffer2.Length;
   if (Tlv != null) {
     arrayObj = Tlv.ToByteArray();
     Header.CommandLength += arrayObj.Length;
   }
   c = Header.ToByteArray();
   var builder = new ByteBuilder((c.Length + buffer2.Length) + GetArrayLength(arrayObj));
   builder.AddRange(c);
   builder.AddRange(buffer2);
   if (arrayObj != null)
     builder.AddRange(arrayObj);
   return builder.ToArray();
 }
Esempio n. 9
0
 public SmppSubmitSmReq(BodyPdu Body, SmppTlv Tlv) : this(new SmppHeader(0, 4, 0, 0), Body, Tlv) {}
Esempio n. 10
0
 public SmppDataSmReq(SmppHeader Header, BodyPdu Body, SmppTlv Tlv)
 {
     _Header = Header;
     _Body   = Body;
     _Tlv    = Tlv;
 }
Esempio n. 11
0
 public SmppDataSmReq(BodyPdu Body, SmppTlv Tlv) : this(new SmppHeader(0, 0x103, 0, 0), Body, Tlv)
 {
 }
Esempio n. 12
0
 internal SmppSubmitSmReq(SmppHeader Header, BodyPdu Body, SmppTlv Tlv)
 {
     _Header = Header;
     _Body   = Body;
     _Tlv    = Tlv;
 }
Esempio n. 13
0
 public SmppSubmitSmReq(BodyPdu Body, SmppTlv Tlv) : this(new SmppHeader(0, 4, 0, 0), Body, Tlv)
 {
 }
Esempio n. 14
0
 internal SmppSubmitSmReq(SmppHeader Header, BodyPdu Body, SmppTlv Tlv) {
   _Header = Header;
   _Body = Body;
   _Tlv = Tlv;
 }
Esempio n. 15
0
 internal SmppDeliverSmRes(ByteBuilder bb) {
   int startPosition = 0x10;
   _Header = new SmppHeader(bb);
   _Body = new BodyPdu(bb, ref startPosition);
   _Tlv = new SmppTlv(bb, startPosition);
 }
Esempio n. 16
0
 public SmppDataSmReq(SmppHeader Header, BodyPdu Body, SmppTlv Tlv) {
   _Header = Header;
   _Body = Body;
   _Tlv = Tlv;
 }
Esempio n. 17
0
 public SmppDataSmReq(BodyPdu Body, SmppTlv Tlv) : this(new SmppHeader(0, 0x103, 0, 0), Body, Tlv) {}