axutil_network_handler.h

00001 
00002 /*
00003  * Copyright 2004,2005 The Apache Software Foundation.
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain count 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 AXUTIL_NETWORK_HANDLER_H
00019 #define AXUTIL_NETWORK_HANDLER_H
00020 
00021 #include <axutil_utils.h>
00022 #include <axutil_utils_defines.h>
00023 #include <axutil_env.h>
00024 #include <sys/types.h>
00025 #include <platforms/axutil_platform_auto_sense.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C"
00029 {
00030 #endif
00031 
00044     AXIS2_EXTERN axis2_socket_t AXIS2_CALL
00045 
00046     axutil_network_handler_open_socket(
00047         const axutil_env_t * env,
00048         char *server,
00049         int port);
00050 
00056     AXIS2_EXTERN axis2_socket_t AXIS2_CALL
00057 
00058     axutil_network_handler_create_server_socket(
00059         const axutil_env_t * env,
00060         int port);
00061 
00067     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00068 
00069     axutil_network_handler_close_socket(
00070         const axutil_env_t * env,
00071         axis2_socket_t socket);
00072 
00080     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00081 
00082     axutil_network_handler_set_sock_option(
00083         const axutil_env_t * env,
00084         axis2_socket_t socket,
00085         int option,
00086         int value);
00087 
00093     AXIS2_EXTERN axis2_socket_t AXIS2_CALL
00094 
00095     axutil_network_handler_svr_socket_accept(
00096         const axutil_env_t * env,
00097         axis2_socket_t socket);
00098 
00104     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00105     axutil_network_handler_get_svr_ip(
00106         const axutil_env_t * env,
00107         axis2_socket_t socket);
00108 
00109     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00110     axutil_network_handler_get_peer_ip(
00111         const axutil_env_t * env,
00112         axis2_socket_t socket);
00113 
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119 
00120 #endif                          /* AXIS2_NETWORK_HANDLER_H */

Generated on Sat May 3 10:44:35 2008 for Axis2/C by  doxygen 1.5.5