2 * This file is part of JSTUN.
4 * Copyright (c) 2005 Thomas King <king@t-king.de> - All rights
7 * This software is licensed under either the GNU Public License (GPL),
8 * or the Apache 2.0 license. Copies of both license agreements are
9 * included in this distribution.
12 package de.javawi.jstun.header;
14 public interface MessageHeaderInterface {
15 public enum MessageHeaderType { BindingRequest
17 , BindingErrorResponse
19 , SharedSecretResponse
20 , SharedSecretErrorResponse
23 , AllocateErrorResponse
26 , RefreshErrorResponse
29 , ChannelBindErrorResponse
32 final static int BINDINGREQUEST = 0x0001;
33 final static int BINDINGRESPONSE = 0x0101;
34 final static int BINDINGERRORRESPONSE = 0x0111;
35 final static int SHAREDSECRETREQUEST = 0x0002;
36 final static int SHAREDSECRETRESPONSE = 0x0102;
37 final static int SHAREDSECRETERRORRESPONSE = 0x0112;
39 // TURN defines ten new Message Types:
40 //Request/Response Transactions
48 final static int ALLOCATEREQUEST = 0x0003;
49 final static int ALLOCATERESPONSE = 0x0103;
50 final static int ALLOCATEERRORRESPONSE = 0x0113;
51 final static int REFRESHREQUEST = 0x0004;
52 final static int REFRESHRESPONSE = 0x0104;
53 final static int REFRESHERRORRESPONSE = 0x0114;
54 final static int CHANNELBINDREQUEST = 0x0009;
55 final static int CHANNELBINDRESPONSE = 0x0109;
56 final static int CHANNELBINDERRORRESPONSE = 0x0119;
57 final static int SENDINDICATION = 0x0006;
58 final static int DATAINDICATION = 0x0007;