Package org.cipango.diameter

Examples of org.cipango.diameter.Dictionary


    int flags = i >> 24 & 0xff;
    boolean isRequest = ((flags & REQUEST_FLAG) == REQUEST_FLAG);
   
    int code = i & 0xffffff;
   
    Dictionary dictionary = Dictionary.getInstance();
   
    DiameterCommand command = isRequest ? dictionary.getRequest(code) : dictionary.getAnswer(code);
    if (command == null)
      command = isRequest ? Factory.newRequest(code, "Unknown") : Factory.newAnswer(code, "Unknown");
   
    DiameterMessage message = isRequest ? new DiameterRequest() : new DiameterAnswer();
   
View Full Code Here

TOP

Related Classes of org.cipango.diameter.Dictionary

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.