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

axis2_transport_receiver.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_RECEIVER_H
00018 #define AXIS2_TRANSPORT_RECEIVER_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_endpoint_ref.h>
00031 #include <axis2_ctx.h>
00032 #include <axis2_conf_ctx.h>
00033 
00034 
00035 
00036 #ifdef __cplusplus
00037 extern "C"
00038 {
00039 #endif
00040 
00041 struct axis2_conf_ctx;
00042 struct axis2_transport_in_desc;
00043 typedef struct axis2_transport_receiver axis2_transport_receiver_t;
00044 typedef struct axis2_transport_receiver_ops axis2_transport_receiver_ops_t;
00045 
00055 AXIS2_DECLARE_DATA struct axis2_transport_receiver_ops
00056 {
00060    axis2_status_t (AXIS2_CALL *
00061     free)(axis2_transport_receiver_t *transport_receiver,
00062         const axis2_env_t *env);
00063     
00064    axis2_status_t (AXIS2_CALL *
00065     start)(axis2_transport_receiver_t *transport_receiver,
00066            const axis2_env_t *env);
00067                     
00068    axis2_status_t (AXIS2_CALL *
00069     stop)(axis2_transport_receiver_t *transport_receiver,
00070            const axis2_env_t *env);
00071                     
00072    axis2_endpoint_ref_t* (AXIS2_CALL *
00073     get_reply_to_epr)(axis2_transport_receiver_t *transport_receiver,
00074                      const axis2_env_t *env,
00075                         axis2_char_t *svc_name);
00076 
00077     axis2_status_t (AXIS2_CALL *
00078     init) (axis2_transport_receiver_t *transport_receiver,
00079           const axis2_env_t *env,
00080          struct axis2_conf_ctx *conf_ctx,
00081          struct axis2_transport_in_desc *transport_in);
00082 
00083 
00084     struct axis2_conf_ctx* (AXIS2_CALL *
00085     get_conf_ctx) (axis2_transport_receiver_t *server, 
00086                        const axis2_env_t *env);
00087    
00088    
00089     axis2_bool_t (AXIS2_CALL *
00090     is_running) (axis2_transport_receiver_t *server, 
00091                        const axis2_env_t *env);
00092 
00093 };
00094 
00098 AXIS2_DECLARE_DATA struct axis2_transport_receiver
00099 {
00100    axis2_transport_receiver_ops_t *ops;
00101 };
00102 
00103 
00104 /*************************** Function macros **********************************/
00105 
00106 #define AXIS2_TRANSPORT_RECEIVER_FREE(transport_receiver, env) \
00107       ((transport_receiver->ops)->free (transport_receiver, env))
00108 
00109 #define AXIS2_TRANSPORT_RECEIVER_INIT(transport_receiver, env, axisconf, transport_in) \
00110       ((transport_receiver->ops)->init (transport_receiver, env, axisconf, transport_in))
00111 
00112 #define AXIS2_TRANSPORT_RECEIVER_START(transport_receiver, env) \
00113       ((transport_receiver->ops)->start (transport_receiver, env))
00114 
00115 #define AXIS2_TRANSPORT_RECEIVER_STOP(transport_receiver, env) \
00116       ((transport_receiver->ops)->stop (transport_receiver, env))
00117 
00118 #define AXIS2_TRANSPORT_RECEIVER_GET_REPLY_TO_EPR(transport_receiver, env, svc_name) \
00119       ((transport_receiver->ops)->get_reply_to_epr (transport_receiver, env, svc_name))
00120 
00121 #define AXIS2_TRANSPORT_RECEIVER_GET_CONF_CTX(transport_receiver, env) \
00122                         ((transport_receiver)->ops->get_conf_ctx(transport_receiver, env))
00123                         
00124 #define AXIS2_TRANSPORT_RECEIVER_IS_RUNNING(transport_receiver, env) \
00125                                 ((transport_receiver)->ops->is_running(transport_receiver, env))
00126 
00127 /*************************** End of function macros ***************************/
00128 
00131 #ifdef __cplusplus
00132 }
00133 #endif
00134 #endif  /* AXIS2_TRANSPORT_RECEIVER_H */

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