axis2_transport_receiver.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 AXIS2_TRANSPORT_RECEIVER_H
00019 #define AXIS2_TRANSPORT_RECEIVER_H
00020 
00039 #include <axis2_const.h>
00040 #include <axis2_error.h>
00041 #include <axis2_defines.h>
00042 #include <axis2_env.h>
00043 #include <axis2_allocator.h>
00044 #include <axis2_endpoint_ref.h>
00045 #include <axis2_ctx.h>
00046 #include <axis2_conf_ctx.h>
00047 
00048 
00049 
00050 #ifdef __cplusplus
00051 extern "C"
00052 {
00053 #endif
00054 
00055     struct axis2_conf_ctx;
00056     struct axis2_transport_in_desc;
00058     typedef struct axis2_transport_receiver axis2_transport_receiver_t;
00060     typedef struct axis2_transport_receiver_ops axis2_transport_receiver_ops_t;
00061 
00066      struct axis2_transport_receiver_ops
00067     {
00073         axis2_status_t (AXIS2_CALL *
00074                 free)(
00075                     axis2_transport_receiver_t *transport_receiver,
00076                     const axis2_env_t *env);
00077 
00082         axis2_status_t (AXIS2_CALL *
00083                 start)(
00084                     axis2_transport_receiver_t *transport_receiver,
00085                     const axis2_env_t *env);
00086 
00091         axis2_status_t (AXIS2_CALL *
00092                 stop)(
00093                     axis2_transport_receiver_t *transport_receiver,
00094                     const axis2_env_t *env);
00095 
00101         axis2_endpoint_ref_t* (AXIS2_CALL *
00102                 get_reply_to_epr)(
00103                     axis2_transport_receiver_t *transport_receiver,
00104                     const axis2_env_t *env,
00105                     const axis2_char_t *svc_name);
00106 
00113         axis2_status_t (AXIS2_CALL *
00114                 init) (
00115                     axis2_transport_receiver_t *transport_receiver,
00116                     const axis2_env_t *env,
00117                     struct axis2_conf_ctx *conf_ctx,
00118                     struct axis2_transport_in_desc *transport_in);
00119 
00120 
00125         struct axis2_conf_ctx* (AXIS2_CALL *
00126                 get_conf_ctx)(
00127                     axis2_transport_receiver_t *server,
00128                     const axis2_env_t *env);
00129 
00130 
00135         axis2_bool_t (AXIS2_CALL *
00136                 is_running)(
00137                     axis2_transport_receiver_t *server,
00138                     const axis2_env_t *env);
00139 
00140     };
00141 
00145      struct axis2_transport_receiver
00146     {
00147         axis2_transport_receiver_ops_t *ops;
00148     };
00149 
00150 
00151 /*************************** Function macros **********************************/
00152 
00155 #define AXIS2_TRANSPORT_RECEIVER_FREE(transport_receiver, env) \
00156       ((transport_receiver->ops)->free (transport_receiver, env))
00157 
00160 #define AXIS2_TRANSPORT_RECEIVER_INIT(transport_receiver, env, axisconf, transport_in) \
00161       ((transport_receiver->ops)->init (transport_receiver, env, axisconf, transport_in))
00162 
00165 #define AXIS2_TRANSPORT_RECEIVER_START(transport_receiver, env) \
00166       ((transport_receiver->ops)->start (transport_receiver, env))
00167 
00170 #define AXIS2_TRANSPORT_RECEIVER_STOP(transport_receiver, env) \
00171       ((transport_receiver->ops)->stop (transport_receiver, env))
00172 
00175 #define AXIS2_TRANSPORT_RECEIVER_GET_REPLY_TO_EPR(transport_receiver, env, svc_name) \
00176       ((transport_receiver->ops)->get_reply_to_epr (transport_receiver, env, svc_name))
00177 
00180 #define AXIS2_TRANSPORT_RECEIVER_GET_CONF_CTX(transport_receiver, env) \
00181                         ((transport_receiver)->ops->get_conf_ctx(transport_receiver, env))
00182 
00185 #define AXIS2_TRANSPORT_RECEIVER_IS_RUNNING(transport_receiver, env) \
00186                                 ((transport_receiver)->ops->is_running(transport_receiver, env))
00187 
00188 /*************************** End of function macros ***************************/
00189 
00192 #ifdef __cplusplus
00193 }
00194 #endif
00195 #endif  /* AXIS2_TRANSPORT_RECEIVER_H */

Generated on Wed Dec 20 20:14:10 2006 for Axis2/C by  doxygen 1.5.1