src/net/java/otr4j/io/SerializationConstants.java
changeset 810 0ff0059f2ec3
equal deleted inserted replaced
797:fbd3585af53e 810:0ff0059f2ec3
       
     1 /*
       
     2  * otr4j, the open source java otr library.
       
     3  *
       
     4  * Distributable under LGPL license.
       
     5  * See terms of license at gnu.org.
       
     6  */
       
     7 package net.java.otr4j.io;
       
     8 
       
     9 /**
       
    10  * 
       
    11  * @author George Politis
       
    12  */
       
    13 public interface SerializationConstants {
       
    14 
       
    15 	public static final String HEAD = "?OTR";
       
    16 	public static final char HEAD_ENCODED = ':';
       
    17 	public static final char HEAD_ERROR = ' ';
       
    18 	public static final char HEAD_QUERY_Q = '?';
       
    19 	public static final char HEAD_QUERY_V = 'v';
       
    20 
       
    21 	public static final int TYPE_LEN_BYTE = 1;
       
    22 	public static final int TYPE_LEN_SHORT = 2;
       
    23 	public static final int TYPE_LEN_INT = 4;
       
    24 	public static final int TYPE_LEN_MAC = 20;
       
    25 	public static final int TYPE_LEN_CTR = 8;
       
    26 
       
    27 	public static final int DATA_LEN = TYPE_LEN_INT;
       
    28 	public static final int TLV_LEN = TYPE_LEN_SHORT;
       
    29 }