00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef TCPMON_ENTRY_H
00019 #define TCPMON_ENTRY_H
00020
00021 #include <axutil_env.h>
00022 #include <axutil_string.h>
00023
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033
00040 typedef struct tcpmon_entry_ops tcpmon_entry_ops_t;
00041 typedef struct tcpmon_entry tcpmon_entry_t;
00042
00043 struct tcpmon_entry_ops
00044 {
00051 axis2_status_t (AXIS2_CALL *
00052 free)(tcpmon_entry_t *entry,
00053 const axutil_env_t *env);
00054
00060 axis2_char_t* (AXIS2_CALL *
00061 arrived_time) (tcpmon_entry_t *entry,
00062 const axutil_env_t *env);
00063
00069 axis2_char_t* (AXIS2_CALL *
00070 sent_time) (tcpmon_entry_t *entry,
00071 const axutil_env_t *env);
00072
00078 axis2_char_t* (AXIS2_CALL *
00079 time_diff) (tcpmon_entry_t *entry,
00080 const axutil_env_t *env);
00081
00087 axis2_char_t* (AXIS2_CALL *
00088 sent_data) (tcpmon_entry_t *entry,
00089 const axutil_env_t *env);
00090
00096 axis2_char_t* (AXIS2_CALL *
00097 arrived_data) (tcpmon_entry_t *entry,
00098 const axutil_env_t *env);
00099
00105 axis2_char_t* (AXIS2_CALL *
00106 sent_headers) (tcpmon_entry_t *entry,
00107 const axutil_env_t *env);
00108
00114 axis2_char_t* (AXIS2_CALL *
00115 arrived_headers) (tcpmon_entry_t *entry,
00116 const axutil_env_t *env);
00117
00123 axis2_bool_t (AXIS2_CALL *
00124 is_success) (tcpmon_entry_t *entry,
00125 const axutil_env_t *env);
00126
00127 int (AXIS2_CALL *
00128 get_format_bit) (tcpmon_entry_t *entry,
00129 const axutil_env_t *env);
00130
00131 axis2_status_t (AXIS2_CALL *
00132 set_format_bit) (tcpmon_entry_t *entry,
00133 const axutil_env_t *env,
00134 int format_bit);
00135 };
00136
00137 struct tcpmon_entry
00138 {
00139 tcpmon_entry_ops_t *ops;
00140 };
00141
00147 tcpmon_entry_t * AXIS2_CALL
00148 tcpmon_entry_create(const axutil_env_t *env );
00149
00150
00151
00152 #define TCPMON_ENTRY_FREE(entry, env) \
00153 ((entry)->ops->free (entry, env))
00154
00155 #define TCPMON_ENTRY_ARRIVED_TIME(entry, env) \
00156 ((entry)->ops->arrived_time(entry, env))
00157
00158 #define TCPMON_ENTRY_SENT_TIME(entry, env) \
00159 ((entry)->ops->sent_time(entry, env))
00160
00161 #define TCPMON_ENTRY_TIME_DIFF(entry, env) \
00162 ((entry)->ops->time_diff(entry, env))
00163
00164 #define TCPMON_ENTRY_SENT_DATA(entry, env) \
00165 ((entry)->ops->sent_data(entry, env))
00166
00167 #define TCPMON_ENTRY_ARRIVED_DATA(entry, env) \
00168 ((entry)->ops->arrived_data(entry, env))
00169
00170 #define TCPMON_ENTRY_SENT_HEADERS(entry, env) \
00171 ((entry)->ops->sent_headers(entry, env))
00172
00173 #define TCPMON_ENTRY_ARRIVED_HEADERS(entry, env) \
00174 ((entry)->ops->arrived_headers(entry, env))
00175
00176 #define TCPMON_ENTRY_IS_SUCCESS(entry, env) \
00177 ((entry)->ops->is_success(entry, env))
00178
00179 #define TCPMON_ENTRY_SET_FORMAT_BIT(entry, env, format_bit) \
00180 ((entry)->ops->set_format_bit(entry, env, format_bit))
00181
00182 #define TCPMON_ENTRY_GET_FORMAT_BIT(entry, env) \
00183 ((entry)->ops->get_format_bit(entry, env))
00184
00187 #ifdef __cplusplus
00188 }
00189 #endif
00190
00191 #endif