Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Examples

axis2_transport_sender.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef AXIS2_TRANSPORT_SENDER_H
00018 #define AXIS2_TRANSPORT_SENDER_H
00019 
00025 #include <axis2_const.h>
00026 #include <axis2_error.h>
00027 #include <axis2_defines.h>
00028 #include <axis2_env.h>
00029 #include <axis2_allocator.h>
00030 #include <axis2_transport_out_desc.h>
00031 #include <axis2_ctx.h>
00032 #include <axis2_msg_ctx.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif
00038 
00039 struct axis2_transport_out_desc;    
00040 struct axis2_ctx;
00041 struct axis2_msg_ctx;    
00042 struct axis2_handler;    
00043 typedef struct axis2_transport_sender axis2_transport_sender_t;
00044 typedef struct axis2_transport_sender_ops axis2_transport_sender_ops_t;
00045 
00055 AXIS2_DECLARE_DATA struct axis2_transport_sender_ops
00056 {
00060    axis2_status_t (AXIS2_CALL *free)(
00061                     axis2_transport_sender_t *transport_sender,
00062                  const axis2_env_t *env);
00069     axis2_status_t (AXIS2_CALL * 
00070     init) (axis2_transport_sender_t *transport_sender,
00071                                 const axis2_env_t *env,
00072                                 struct axis2_conf_ctx *conf_ctx,
00073                                 struct axis2_transport_out_desc *transport_out);
00079     axis2_status_t (AXIS2_CALL *                          
00080     cleanup) (axis2_transport_sender_t *transport_sender,
00081                                 const axis2_env_t *env,
00082                                 struct axis2_msg_ctx *msg_ctx);
00083                            
00089     axis2_status_t (AXIS2_CALL *                          
00090     invoke) (axis2_transport_sender_t *transport_sender,
00091                                 const axis2_env_t *env,
00092                                 struct axis2_msg_ctx *msg_ctx);
00093 
00094 };
00095 
00101 AXIS2_DECLARE_DATA struct axis2_transport_sender
00102 {
00103    axis2_transport_sender_ops_t *ops;
00104 };
00105 
00110 AXIS2_EXTERN axis2_transport_sender_t * AXIS2_CALL 
00111 axis2_transport_sender_create (const axis2_env_t *env);
00112 
00113 /*************************** Function macros **********************************/
00114 
00115 #define AXIS2_TRANSPORT_SENDER_FREE(transport_sender, env) \
00116       ((transport_sender->ops)->free (transport_sender, env))
00117 
00118 #define AXIS2_TRANSPORT_SENDER_INIT(transport_sender, env, conf_context, transport_out) \
00119       ((transport_sender->ops)->init (transport_sender, env, conf_context, transport_out))
00120 
00121 #define AXIS2_TRANSPORT_SENDER_INVOKE(transport_sender, env, msg_ctx) \
00122       ((transport_sender->ops)->invoke (transport_sender, env, msg_ctx))      
00123 
00124 #define AXIS2_TRANSPORT_SENDER_CLEANUP(transport_sender, env, msg_ctx) \
00125       ((transport_sender->ops)->cleanup (transport_sender, env, msg_ctx))      
00126 
00127 /*************************** End of function macros ***************************/
00128 
00131 #ifdef __cplusplus
00132 }
00133 #endif
00134 #endif  /* AXIS2_TRANSPORT_SENDER_H */

Generated on Fri Jun 16 18:02:31 2006 for Axis2/C by  doxygen 1.4.2