Examples of GtpPrimeInformationElementTLV


Examples of org.protocol.gtp.prime.iet.GtpPrimeInformationElementTLV

*
*/
public class GtpPrimeRedirectionRequest extends GtpPrimeMessage {

  private void addCGateway(String ip) {
    this.addInformationElement(new GtpPrimeInformationElementTLV(
        GtpPrime3gppConstants.GTP_PRIME_IET_CHARGING_GATEWAY_ADDRESS,
        new InetSocketAddress(ip, 0).getAddress().getAddress()));
   
  }
View Full Code Here

Examples of org.protocol.gtp.prime.iet.GtpPrimeInformationElementTLV

*
*/
public class GtpPrimeNodeAliveRequest extends GtpPrimeMessage {

  private void addCGateway(String ip) {
    this.addInformationElement(new GtpPrimeInformationElementTLV(
        GtpPrime3gppConstants.GTP_PRIME_IET_CHARGING_GATEWAY_ADDRESS,
        new InetSocketAddress(ip, 0).getAddress().getAddress()));
   
  }
View Full Code Here

Examples of org.protocol.gtp.prime.iet.GtpPrimeInformationElementTLV

      out.write((cdr.length >> 8) & 0xFF);
      out.write(cdr.length & 0xFF);
      out.write(cdr);
    }
   
    this.addInformationElement(new GtpPrimeInformationElementTLV(GtpPrime3gppConstants.GTP_PRIME_IET_DATA_RECORD_PACKET, out.toByteArray()));
   
  }
View Full Code Here

Examples of org.protocol.gtp.prime.iet.GtpPrimeInformationElementTLV

    for (Integer i : list) {
      out.write((i>> 8) & 0xFF);
      out.write(i & 0xFF);
    }
   
    this.addInformationElement(new GtpPrimeInformationElementTLV(code, out.toByteArray()));
  }
View Full Code Here

Examples of org.protocol.gtp.prime.iet.GtpPrimeInformationElementTLV

    if ((start >= end) || (start >= message.length)) return;
    byte type = message[start];
   
    // TLV
    if (((type >> 7)&0x01) == 1) {
      GtpPrimeInformationElementTLV tlv = new GtpPrimeInformationElementTLV(message,start);
      addInformationElement(tlv);     
      start += tlv.getTotalSize();               
    } else {
      // TV
      addInformationElement(new GtpPrimeInformationElementTV((short)(type & 0x00FF),(short)(message[start+1] & 0x00FF)));
      start += 2;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.