]> sjero.net Git - linphone/blob - p2pproxy/dependencies-src/jstun-src-0.7.1/de/javawi/jstun/header/MessageHeaderInterface.java
1b7a2cfe6e6267c2ff94c560ebec9dba2a1e1279
[linphone] / p2pproxy / dependencies-src / jstun-src-0.7.1 / de / javawi / jstun / header / MessageHeaderInterface.java
1 /*
2  * This file is part of JSTUN. 
3  * 
4  * Copyright (c) 2005 Thomas King <king@t-king.de> - All rights
5  * reserved.
6  * 
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.
10  */
11
12 package de.javawi.jstun.header;
13
14 public interface MessageHeaderInterface {
15         public enum MessageHeaderType { BindingRequest
16                                          , BindingResponse
17                                          , BindingErrorResponse
18                                          , SharedSecretRequest
19                                          , SharedSecretResponse
20                                          , SharedSecretErrorResponse
21                                          , AllocateRequest
22                                          , AllocateResponse
23                                          , AllocateErrorResponse
24                                          , RefreshRequest
25                                          , RefreshResponse
26                                          , RefreshErrorResponse
27                                          , ChannelBindRequest
28                                          , ChannelBindResponse
29                                          , ChannelBindErrorResponse
30                                          ,SendIndication
31                                          ,DataIndication};
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;
38
39 //        TURN defines ten new Message Types:
40 //Request/Response Transactions
41 //0x003  :  Allocate
42 //0x004  :  Refresh
43 //0x009  :  ChannelBind
44 //0x006  :  Send
45 //0x007  :  Data
46
47
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;
59         
60         
61 }