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 
00031 #include <axis2_const.h>
00032 #include <axis2_error.h>
00033 #include <axis2_defines.h>
00034 #include <axis2_env.h>
00035 #include <axis2_allocator.h>
00036 #include <axis2_transport_out_desc.h>
00037 #include <axis2_ctx.h>
00038 #include <axis2_msg_ctx.h>
00039 
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044 
00045     struct axis2_transport_out_desc;
00046     struct axis2_ctx;
00047     struct axis2_msg_ctx;
00048     struct axis2_handler;
00050     typedef struct axis2_transport_sender axis2_transport_sender_t;
00052     typedef struct axis2_transport_sender_ops axis2_transport_sender_ops_t;
00053 
00058      struct axis2_transport_sender_ops
00059     {
00065         axis2_status_t (AXIS2_CALL *
00066                 free)(
00067                     axis2_transport_sender_t *transport_sender,
00068                     const axis2_env_t *env);
00069 
00078         axis2_status_t (AXIS2_CALL *
00079                 init)(
00080                     axis2_transport_sender_t *transport_sender,
00081                     const axis2_env_t *env,
00082                     struct axis2_conf_ctx *conf_ctx,
00083                     struct axis2_transport_out_desc *transport_out);
00084 
00092         axis2_status_t (AXIS2_CALL *
00093                 cleanup)(
00094                     axis2_transport_sender_t *transport_sender,
00095                     const axis2_env_t *env,
00096                     struct axis2_msg_ctx *msg_ctx);
00097 
00105         axis2_status_t (AXIS2_CALL *
00106                 invoke)(
00107                     axis2_transport_sender_t *transport_sender,
00108                     const axis2_env_t *env,
00109                     struct axis2_msg_ctx *msg_ctx);
00110 
00111     };
00112 
00118      struct axis2_transport_sender
00119     {
00121         axis2_transport_sender_ops_t *ops;
00122     };
00123 
00129     AXIS2_EXTERN axis2_transport_sender_t * AXIS2_CALL
00130     axis2_transport_sender_create (
00131         const axis2_env_t *env);
00132 
00133 /*************************** Function macros **********************************/
00134 
00137 #define AXIS2_TRANSPORT_SENDER_FREE(transport_sender, env) \
00138       ((transport_sender->ops)->free (transport_sender, env))
00139 
00142 #define AXIS2_TRANSPORT_SENDER_INIT(transport_sender, env, conf_context, transport_out) \
00143       ((transport_sender->ops)->init (transport_sender, env, conf_context, transport_out))
00144 
00147 #define AXIS2_TRANSPORT_SENDER_INVOKE(transport_sender, env, msg_ctx) \
00148       ((transport_sender->ops)->invoke (transport_sender, env, msg_ctx))
00149 
00152 #define AXIS2_TRANSPORT_SENDER_CLEANUP(transport_sender, env, msg_ctx) \
00153       ((transport_sender->ops)->cleanup (transport_sender, env, msg_ctx))
00154 
00155 /*************************** End of function macros ***************************/
00156 
00159 #ifdef __cplusplus
00160 }
00161 #endif
00162 #endif  /* AXIS2_TRANSPORT_SENDER_H */

Generated on Thu Oct 26 21:11:24 2006 for Axis2/C by  doxygen 1.4.7