There's no need to keep a "FILE *" for the file being printed to in a
[obnox/wireshark/wip.git] / packet-rmi.h
1 /* packet-rmi.h
2  * header file for java rmiregistry dissection
3  * Copyright 2002, Michael Stiller <ms@2scale.net>
4  *
5  * $Id: packet-rmi.h,v 1.5 2003/12/21 03:58:29 jmayer Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24  */
25 #ifndef __PACKET_RMI_H__
26 #define __PACKET_RMI_H__
27
28 #define SER_STREAM_MAGIC   0xaced
29
30 #define SER_STREAM_VERSION 5
31
32 #define SER_TC_NULL             0x70
33 #define SER_TC_REFERENCE        0x71
34 #define SER_TC_CLASSDESC        0x72
35 #define SER_TC_OBJECT           0x73
36 #define SER_TC_STRING           0x74
37 #define SER_TC_ARRAY            0x75
38 #define SER_TC_CLASS            0x76
39 #define SER_TC_BLOCKDATA        0x77
40 #define SER_TC_ENDBLOCKDATA     0x78
41 #define SER_TC_RESET            0x79
42 #define SER_TC_BLOCKDATALONG    0x7A
43 #define SER_TC_EXCEPTION        0x7B
44
45 #define RMI_MAGIC               "JRMI"
46 #define RMI_MAGIC_HEX           0x4a524d49
47
48 #define RMI_OUTPUTSTREAM_PROTOCOL_STREAM     0x4b
49 #define RMI_OUTPUTSTREAM_PROTOCOL_SINGLEOP   0x4c
50 #define RMI_OUTPUTSTREAM_PROTOCOL_MULTIPLEX  0x4d
51
52 #define RMI_OUTPUTSTREAM_MESSAGE_CALL        0x50
53 #define RMI_OUTPUTSTREAM_MESSAGE_PING        0x52
54 #define RMI_OUTPUTSTREAM_MESSAGE_DGCACK      0x54
55
56 #define RMI_INPUTSTREAM_MESSAGE_ACK          0x4e
57 #define RMI_INPUTSTREAM_MESSAGE_NOTSUPPORTED 0x4f
58 #define RMI_INPUTSTREAM_MESSAGE_RETURNDATA   0x51
59 #define RMI_INPUTSTREAM_MESSAGE_PINGACK      0x53
60
61 typedef enum {
62     CONTINUATION        = 1,
63     RMI_OUTPUTSTREAM    = 2,
64     RMI_OUTPUTMESSAGE   = 3,
65     RMI_INPUTSTREAM     = 16,
66     SERIALIZATION_DATA  = 128
67 } rmi_type;
68
69 #endif