tcpmon_entry.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017   
00018 #ifndef TCPMON_ENTRY_H
00019 #define TCPMON_ENTRY_H
00020 
00021 #include <axis2_env.h>
00022 #include <axis2_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 axis2_env_t *env);
00054    
00060     axis2_char_t* (AXIS2_CALL *
00061     arrived_time) (tcpmon_entry_t *entry,
00062                         const axis2_env_t *env);
00063 
00069     axis2_char_t* (AXIS2_CALL *
00070     sent_time) (tcpmon_entry_t *entry,
00071                         const axis2_env_t *env);
00072 
00078     axis2_char_t* (AXIS2_CALL *
00079     time_diff) (tcpmon_entry_t *entry,
00080                         const axis2_env_t *env);
00081 
00087     axis2_char_t* (AXIS2_CALL *
00088     sent_data) (tcpmon_entry_t *entry,
00089                         const axis2_env_t *env);
00090  
00096     axis2_char_t* (AXIS2_CALL *
00097     arrived_data) (tcpmon_entry_t *entry,
00098                         const axis2_env_t *env);
00099 
00105     axis2_char_t* (AXIS2_CALL *
00106     sent_headers) (tcpmon_entry_t *entry,
00107                         const axis2_env_t *env);
00108  
00114     axis2_char_t* (AXIS2_CALL *
00115     arrived_headers) (tcpmon_entry_t *entry,
00116                         const axis2_env_t *env);
00117 
00123     axis2_bool_t (AXIS2_CALL *
00124     is_success) (tcpmon_entry_t *entry,
00125                         const axis2_env_t *env);
00126 
00127     int (AXIS2_CALL *
00128     get_format_bit) (tcpmon_entry_t *entry,
00129                             axis2_env_t *env);
00130 
00131     axis2_status_t (AXIS2_CALL *
00132     set_format_bit) (tcpmon_entry_t *entry,
00133                         const axis2_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 axis2_env_t *env );
00149 
00150 /*************************** Function macros **********************************/
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 /* TCPMON_ENTRY_H */

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1