Axis2/C: axis2_simple_http_svr_conn.h Source File

- Main Page
- Modules
- Classes
- Files
- Directories
- Related Pages
- Examples

- Search for |

# 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
    00114     axis2_simple_http_svr_conn_read_request(
    00115         axis2_simple_http_svr_conn_t * svr_conn,
    00116         const axutil_env_t * env);
    00117
    00124     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00125
    00126     axis2_simple_http_svr_conn_write_response(
    00127         axis2_simple_http_svr_conn_t * svr_conn,
    00128         const axutil_env_t * env,
    00129         axis2_http_simple_response_t * response);
    00130
    00137     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00138
    00139     axis2_simple_http_svr_conn_set_rcv_timeout(
    00140         axis2_simple_http_svr_conn_t * svr_conn,
    00141         const axutil_env_t * env,
    00142         int timeout);
    00143
    00150     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00151
    00152     axis2_simple_http_svr_conn_set_snd_timeout(
    00153         axis2_simple_http_svr_conn_t * svr_conn,
    00154         const axutil_env_t * env,
    00155         int timeout);
    00156
    00161     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00162
    00163     axis2_simple_http_svr_conn_get_svr_ip(
    00164         const axis2_simple_http_svr_conn_t * svr_conn,
    00165         const axutil_env_t * env);
    00166
    00171     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00172
    00173     axis2_simple_http_svr_conn_get_peer_ip(
    00174         const axis2_simple_http_svr_conn_t * svr_conn,
    00175         const axutil_env_t * env);
    00176
    00177
    00183     AXIS2_EXTERN void AXIS2_CALL
    00184     axis2_simple_http_svr_conn_free(
    00185         axis2_simple_http_svr_conn_t * svr_conn,
    00186         const axutil_env_t * env);
    00187
    00193     AXIS2_EXTERN axis2_simple_http_svr_conn_t *AXIS2_CALL
    00194
    00195     axis2_simple_http_svr_conn_create(
    00196         const axutil_env_t * env,
    00197         int sockfd);
    00198
    00201 #ifdef __cplusplus
    00202 }
    00203 #endif
    00204
    00205 #endif                          /* AXIS2_SIMPLE_HTTP_SVR_CONN_H */