Source code: com/neuron/jaffer/DSI_Constants.java
1 /*
2 * Copyright (c) 2003 Stewart Allen <stewart@neuron.com>. All rights reserved.
3 * This program is free software. See the 'License' file for details.
4 */
5
6 package com.neuron.jaffer;
7
8 import java.io.*;
9 import java.net.*;
10 import java.util.*;
11
12 // Reference: Appletalk Filing Protocol Version 2.1 and 2.2
13 public interface DSI_Constants
14 {
15 public final static int DSI_REQUEST = 0x00;
16 public final static int DSI_REPLY = 0x01;
17
18 public final static int OPT_SERV_QUANT = 0x00;
19 public final static int OPT_ATTN_QUANT = 0x01;
20
21 public final static int CMD_CLOSE_SESSION = 0x01; // client & server
22 public final static int CMD_COMMAND = 0x02; // client
23 public final static int CMD_GET_STATUS = 0x03; // client
24 public final static int CMD_OPEN_SESSION = 0x04; // client
25 public final static int CMD_TICKLE = 0x05; // client & server
26 public final static int CMD_WRITE = 0x06; // client
27 public final static int CMD_ATTENTION = 0x08; // server
28
29 public final static String[] COMMAND = {
30 null,
31 "CLOSE_SESSION",
32 "COMMAND",
33 "GET_STATUS",
34 "OPEN_SESSION",
35 "TICKLE",
36 "WRITE",
37 null,
38 "ATTENTION"
39 };
40 }
41