# axis2_simple_http_svr_conn.h

Go to the documentation of this file.

    00001
    00002 /*
    00003  * Licensed to the Apache Software Foundation (ASF) under one or more
    00004  * contributor license agreements.  See the NOTICE file distributed with
    00005  * this work for additional information regarding copyright ownership.
    00006  * The ASF licenses this file to You under the Apache License, Version 2.0
    00007  * (the "License"); you may not use this file except in compliance with
    00008  * the License.  You may obtain a copy of the License at
    00009  *
    00010  *      http://www.apache.org/licenses/LICENSE-2.0
    00011  *
    00012  * Unless required by applicable law or agreed to in writing, software
    00013  * distributed under the License is distributed on an "AS IS" BASIS,
    00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00015  * See the License for the specific language governing permissions and
    00016  * limitations under the License.
    00017  */
    00018
    00019 #ifndef AXIS2_SIMPLE_HTTP_SVR_CONN_H
    00020 #define AXIS2_SIMPLE_HTTP_SVR_CONN_H
    00021
    00032 #include <axis2_const.h>
    00033 #include <axis2_defines.h>
    00034 #include <axutil_env.h>
    00035 #include <axis2_http_simple_request.h>
    00036 #include <axis2_http_simple_response.h>
    00037 #include <axis2_http_response_writer.h>
    00038
    00039 #ifdef __cplusplus
    00040 extern "C"
    00041 {
    00042 #endif
    00043
    00044     typedef struct axis2_simple_http_svr_conn axis2_simple_http_svr_conn_t;
    00045
    00051     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00052     axis2_simple_http_svr_conn_close(
    00053         axis2_simple_http_svr_conn_t * svr_conn,
    00054         const axutil_env_t * env);
    00055
    00060     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00061     axis2_simple_http_svr_conn_is_open(
    00062         axis2_simple_http_svr_conn_t * svr_conn,
    00063         const axutil_env_t * env);
    00064
    00071     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00072
    00073     axis2_simple_http_svr_conn_set_keep_alive(
    00074         axis2_simple_http_svr_conn_t * svr_conn,
    00075         const axutil_env_t * env,
    00076         axis2_bool_t keep_alive);
    00077
    00082     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00083
    00084     axis2_simple_http_svr_conn_is_keep_alive(
    00085         axis2_simple_http_svr_conn_t * svr_conn,
    00086         const axutil_env_t * env);
    00087
    00092     AXIS2_EXTERN axutil_stream_t *AXIS2_CALL
    00093
    00094     axis2_simple_http_svr_conn_get_stream(
    00095         const axis2_simple_http_svr_conn_t * svr_conn,
    00096         const axutil_env_t * env);
    00097
    00102     AXIS2_EXTERN axis2_http_response_writer_t *AXIS2_CALL
    00103
    00104     axis2_simple_http_svr_conn_get_writer(
    00105         const axis2_simple_http_svr_conn_t * svr_conn,
    00106         const axutil_env_t * env);
    00107
    00112     AXIS2_EXTERN axis2_http_simple_request_t *AXIS2_CALL
    00113     axis2_simple_http_svr_conn_read_request(
    00114         axis2_simple_http_svr_conn_t * svr_conn,
    00115         const axutil_env_t * env);
    00116
    00123     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00124
    00125     axis2_simple_http_svr_conn_write_response(
    00126         axis2_simple_http_svr_conn_t * svr_conn,
    00127         const axutil_env_t * env,
    00128         axis2_http_simple_response_t * response);
    00129
    00136     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00137
    00138     axis2_simple_http_svr_conn_set_rcv_timeout(
    00139         axis2_simple_http_svr_conn_t * svr_conn,
    00140         const axutil_env_t * env,
    00141         int timeout);
    00142
    00149     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00150
    00151     axis2_simple_http_svr_conn_set_snd_timeout(
    00152         axis2_simple_http_svr_conn_t * svr_conn,
    00153         const axutil_env_t * env,
    00154         int timeout);
    00155
    00160     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00161
    00162     axis2_simple_http_svr_conn_get_svr_ip(
    00163         const axis2_simple_http_svr_conn_t * svr_conn,
    00164         const axutil_env_t * env);
    00165
    00170     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00171
    00172     axis2_simple_http_svr_conn_get_peer_ip(
    00173         const axis2_simple_http_svr_conn_t * svr_conn,
    00174         const axutil_env_t * env);
    00175
    00176
    00182     AXIS2_EXTERN void AXIS2_CALL
    00183     axis2_simple_http_svr_conn_free(
    00184         axis2_simple_http_svr_conn_t * svr_conn,
    00185         const axutil_env_t * env);
    00186
    00192     AXIS2_EXTERN axis2_simple_http_svr_conn_t *AXIS2_CALL
    00193
    00194     axis2_simple_http_svr_conn_create(
    00195         const axutil_env_t * env,
    00196         int sockfd);
    00197
    00200 #ifdef __cplusplus
    00201 }
    00202 #endif
    00203
    00204 #endif                          /* AXIS2_SIMPLE_HTTP_SVR_CONN_H */