/**
 * Copyright (C) 2010-2011, FuseSource Corp.  All rights reserved.
 *
 *     http://fusesource.com
 *
 * The software in this package is published under the terms of the
 * CDDL license a copy of which has been included with this distribution
 * in the license.txt file.
 */

package org.fusesource.fabric.apollo.amqp.codec;

import org.fusesource.hawtbuf.AsciiBuffer;
import org.fusesource.hawtbuf.Buffer;

/**
 * Definitions for the Amqp protocol
 */
public interface AmqpDefinitions {

    /**
     * Protocol magic identifier
     */
    public static final byte[] MAGIC = new AsciiBuffer("AMQP").getData();

    /**
     * Default IANA assigned Amqp port as an int
     */
    public static final int PORT = Integer.parseInt(Definitions.PORT);

    /**
     * Protocol ID, only used in the preamble, is defined to just be 0
     */
    public static final byte PROTOCOL_ID = 0x0;

    /**
     * Major as a byte
     */
    public static final byte MAJOR = Byte.parseByte(Definitions.MAJOR);

    /**
     * Minor as a byte
     */
    public static final byte MINOR = Byte.parseByte(Definitions.MINOR);

    /**
     * Rebision as a byte
     */
    public static final byte REVISION = Byte.parseByte(Definitions.REVISION);

    public static final int MIN_MAX_FRAME_SIZE = Integer.parseInt(Definitions.MIN_MAX_FRAME_SIZE);

}

@@ -369,46 +369,8 @@
 fer;
-%0Aimport org.fusesource.hawtbuf.Buffer;
 %0A%0A/*
@@ -610,19 +610,19 @@
 signed A
-mqp
+MQP
  port as
@@ -705,24 +705,190 @@
 ons.PORT);%0A%0A
+    /**%0A     * Default IANA assigned secure AMQP (amqps) port as an int%0A     */%0A    public static final int SECURE_PORT = Integer.parseInt(Definitions.SECURE_PORT);%0A%0A
     /**%0A    
@@ -1011,16 +1011,110 @@
 = 0x0;%0A%0A
+    /**%0A     * SASL Protocol ID%0A     */%0A    public static final byte SASL_PROTOCOL_ID = 0x3;%0A%0A
     /**%0A
@@ -1346,17 +1346,17 @@
     * Re
-b
+v
 ision as

Add SASL protocol ID, also add amqps port