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 <axutil_error.h>
00041  #include <axis2_defines.h>
00042  #include <axutil_env.h>
00043  #include <axutil_allocator.h>
00044  #include <axis2_endpoint_ref.h>
00045  #include <axis2_ctx.h>
00046  #include <axis2_conf_ctx.h>
00047 
00048 
00049 #ifdef __cplusplus
00050 extern "C"
00051 {
00052 #endif
00053 
00054     struct axis2_conf_ctx;
00055     struct axis2_transport_in_desc;
00056 
00058     typedef struct axis2_transport_receiver axis2_transport_receiver_t;
00059 
00061     typedef struct axis2_transport_receiver_ops axis2_transport_receiver_ops_t;
00062 
00067     struct axis2_transport_receiver_ops
00068     {
00069 
00076         axis2_status_t(AXIS2_CALL * init)(
00077             axis2_transport_receiver_t * transport_receiver,
00078             const axutil_env_t * env,
00079             struct axis2_conf_ctx * conf_ctx,
00080             struct axis2_transport_in_desc * transport_in);
00081 
00086         axis2_status_t(AXIS2_CALL * start)(
00087             axis2_transport_receiver_t * transport_receiver,
00088             const axutil_env_t * env);
00089 
00095         axis2_endpoint_ref_t *(AXIS2_CALL * get_reply_to_epr)(
00096             axis2_transport_receiver_t * transport_receiver,
00097             const axutil_env_t * env,
00098             const axis2_char_t * svc_name);
00099 
00104         struct axis2_conf_ctx *(AXIS2_CALL * get_conf_ctx)(
00105             axis2_transport_receiver_t * server,
00106             const axutil_env_t * env);
00107 
00112         axis2_bool_t(AXIS2_CALL * is_running)(
00113             axis2_transport_receiver_t * server,
00114             const axutil_env_t * env);
00115 
00120         axis2_status_t(AXIS2_CALL * stop)(
00121             axis2_transport_receiver_t * transport_receiver,
00122             const axutil_env_t * env);
00123 
00129         void(AXIS2_CALL * free)(
00130             axis2_transport_receiver_t * transport_receiver,
00131             const axutil_env_t * env);
00132 
00133     };
00134 
00138     struct axis2_transport_receiver
00139     {
00140         const axis2_transport_receiver_ops_t *ops;
00141     };
00142 
00145     AXIS2_EXTERN void AXIS2_CALL
00146     axis2_transport_receiver_free(
00147         axis2_transport_receiver_t * transport_receiver,
00148         const axutil_env_t * env);
00149 
00152     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00153     axis2_transport_receiver_init(
00154         axis2_transport_receiver_t * transport_receiver,
00155         const axutil_env_t * env,
00156         struct axis2_conf_ctx *conf_ctx,
00157         struct axis2_transport_in_desc *transport_in);
00158 
00161     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00162     axis2_transport_receiver_start(
00163         axis2_transport_receiver_t * transport_receiver,
00164         const axutil_env_t * env);
00165 
00168     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00169     axis2_transport_receiver_stop(
00170         axis2_transport_receiver_t * transport_receiver,
00171         const axutil_env_t * env);
00172 
00175     AXIS2_EXTERN axis2_endpoint_ref_t *AXIS2_CALL
00176     axis2_transport_receiver_get_reply_to_epr(
00177         axis2_transport_receiver_t * transport_receiver,
00178         const axutil_env_t * env,
00179         const axis2_char_t * svc_name);
00180 
00183     AXIS2_EXTERN struct axis2_conf_ctx *AXIS2_CALL
00184     axis2_transport_receiver_get_conf_ctx(
00185         axis2_transport_receiver_t * transport_receiver,
00186         const axutil_env_t * env);
00187 
00190     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00191     axis2_transport_receiver_is_running(
00192         axis2_transport_receiver_t * transport_receiver,
00193         const axutil_env_t * env);
00194 
00197 #ifdef __cplusplus
00198 }
00199 #endif
00200 #endif                          /* AXIS2_TRANSPORT_RECEIVER_H */

Generated on Wed Oct 14 01:02:12 2009 for Axis2/C by  doxygen 1.5.7.1