01: // MUX.java
02: // $Id: MUX.java,v 1.7 2000/08/16 21:38:01 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.www.mux;
07:
08: public interface MUX {
09: // Impl constants:
10: public static final int RECEIVER_DEFAULT_CREDIT = 4096;
11: public static final int SENDER_DEFAULT_CREDIT = 4096;
12: public static final int WRITER_BUFFER_SIZE = 4096;
13: public static final int READER_BUFFER_SIZE = 4096;
14: public static final int SENDER_DEFAULT_FRAGMENT_SIZE = 512;
15:
16: public static final int SESSIONS_INCR = 8;
17:
18: // Protocol constants:
19:
20: public static final int MAX_SESSION = 256;
21:
22: public static final int LONG_LENGTH = 0x80000000;
23: public static final int CONTROL = 0x40000000;
24: public static final int SYN = 0x20000000;
25: public static final int FIN = 0x10000000;
26: public static final int RST = 0x08000000;
27: public static final int PUSH = 0x04000000;
28: public static final int SESSION = 0x3FC00000;
29: public static final int LENGTH = 0x0003FFFF;
30:
31: public static final int CTRL_CODE = 0x3C000000;
32: public static final int CTRL_DEFINE_STRING = 0;
33: public static final int CTRL_DEFINE_STACK = 1;
34: public static final int CTRL_MUX_CONTROL = 2;
35: public static final int CTRL_SEND_CREDIT = 3;
36:
37: }
|