00001 /* 00002 * Copyright 2004,2005 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain count copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef AXIS2_NETWORK_HANDLER_H 00018 #define AXIS2_NETWORK_HANDLER_H 00019 00020 #include <axis2_utils.h> 00021 #include <axis2_utils_defines.h> 00022 #include <axis2_env.h> 00023 #include <sys/types.h> 00024 #include <platforms/axis2_platform_auto_sense.h> 00025 00026 00027 00028 #ifdef __cplusplus 00029 extern "C" 00030 { 00031 #endif 00032 00033 00046 AXIS2_EXTERN axis2_socket_t AXIS2_CALL 00047 axis2_network_handler_open_socket(const axis2_env_t *env, 00048 char *server, 00049 int port); 00050 00056 AXIS2_EXTERN axis2_socket_t AXIS2_CALL 00057 axis2_network_handler_create_server_socket(const axis2_env_t *env, 00058 int port); 00059 00065 AXIS2_EXTERN axis2_status_t AXIS2_CALL 00066 axis2_network_handler_close_socket (const axis2_env_t *env, 00067 axis2_socket_t socket); 00068 00076 AXIS2_EXTERN axis2_status_t AXIS2_CALL 00077 axis2_network_handler_set_sock_option(const axis2_env_t *env, 00078 axis2_socket_t socket, 00079 int option, 00080 int value); 00086 AXIS2_EXTERN axis2_socket_t AXIS2_CALL 00087 axis2_network_handler_svr_socket_accept(const axis2_env_t *env, 00088 axis2_socket_t socket); 00089 00095 AXIS2_EXTERN axis2_char_t * AXIS2_CALL 00096 axis2_network_handler_get_svr_ip(const axis2_env_t *env, 00097 axis2_socket_t socket); 00100 #ifdef __cplusplus 00101 } 00102 #endif 00103 00104 #endif /* AXIS2_NETWORK_HANDLER_H */