OSDN Git Service

*** empty log message ***
[drdeamon64/drdeamon64.git] / deamon / drd64_marshald_cinfo.h
1 /*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64
2
3                          D r . D e a m o n  6 4
4                         for INTEL64(R), AMD64(R)
5         
6    Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved.
7
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met:
10
11  1. Redistributions of source code must retain the above copyright notice,
12     this list of conditions and the following disclaimer.
13  2. Redistributions in binary form must reproduce the above copyright
14     notice, this list of conditions and the following disclaimer in the
15     documentation and/or other materials provided with the distribution.
16
17 THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND ANY
18 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 DISCLAIMED. IN NO EVENT SHALL Koine Yuusuke(koinec) OR CONTRIBUTORS BE
21 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27 OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/
30
31 /* File Info -----------------------------------------------------------
32 File: drd64_.h
33 Function: Header 
34 Comment: 
35 ----------------------------------------------------------------------*/
36
37 #ifndef DRD64_HEADER_MARSHALD_CINFO
38 #define DRD64_HEADER_MARSHALD_CINFO
39
40 #include"drd64_marshald.h"
41
42 #define DRD64_MARSHALD_CINFOTYPE_CONNECT        0x01
43 #define DRD64_MARSHALD_CINFOTYPE_DEBUG          0x02
44 #define DRD64_MARSHALD_CINFOTYPE_CLIENT         0x03
45
46 #define DRD64_MARSHALD_CINFOSTATUS_READ         0x00
47 #define DRD64_MARSHALD_CINFOSTATUS_CONNECT      0x01
48 #define DRD64_MARSHALD_CINFOSTATUS_POLL         0x02
49
50
51 typedef struct  {
52
53         /* Section 1 : ConnectionInfo Master  ========*/
54         int             i_cinfo_id;
55         Byte    b_cinfo_type;
56         int             i_cinfo_refcount;
57         Byte    b_cinfo_status;
58         
59         /* Section 2 : Connection Info. ==============*/
60         /* Destination Info. */
61         int                             i_dest_socket;
62         char                    str_dest_addr_local[DRD64_MAX_PATH];
63         struct  in_addr t_dest_addr_inet;
64         int                             i_dest_cinfo_id;
65
66         /* Source Info. ( = Singal Info. ) */
67         int                             i_src_socket;
68         /*char                  str_src_addr_local[];
69                                                 => NONE USE : use marshald(local) socket */
70         struct  in_addr t_src_addr_inet;
71         int                             i_src_cinfo_id;
72
73         /* Section 3 : Debuggee Program Info. ========*/
74         struct  in_addr t_prog_addr_inet;
75         int                             i_prog_pid;
76
77         /* Debugd Info. */
78         int                             i_debugd_pid;
79
80         /* Client Info. */
81         struct  in_addr t_client_addr_inet;
82         int                             i_client_pid;
83
84 } Drd64_Marshald_ConnectInfo;
85
86
87 #endif  /* DRD64_HEADER_XXX */
88
89 /* EOF of drd64_.h ----------------------------------- */