axutil_network_handler.h

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 AXUTIL_NETWORK_HANDLER_H
00018 #define AXUTIL_NETWORK_HANDLER_H
00019 
00020 #include <axutil_utils.h>
00021 #include <axutil_utils_defines.h>
00022 #include <axutil_env.h>
00023 #include <sys/types.h>
00024 #include <platforms/axutil_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     axutil_network_handler_open_socket(const axutil_env_t *env,
00048             char *server,
00049             int port);
00050 
00056     AXIS2_EXTERN axis2_socket_t AXIS2_CALL
00057     axutil_network_handler_create_server_socket(const axutil_env_t *env,
00058             int port);
00059 
00065     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00066     axutil_network_handler_close_socket(const axutil_env_t *env,
00067             axis2_socket_t socket);
00068 
00076     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00077     axutil_network_handler_set_sock_option(const axutil_env_t *env,
00078             axis2_socket_t socket,
00079             int option,
00080             int value);
00086     AXIS2_EXTERN axis2_socket_t AXIS2_CALL
00087     axutil_network_handler_svr_socket_accept(const axutil_env_t *env,
00088             axis2_socket_t socket);
00089 
00095     AXIS2_EXTERN axis2_char_t * AXIS2_CALL
00096     axutil_network_handler_get_svr_ip(const axutil_env_t *env,
00097             axis2_socket_t socket);
00098 
00099     AXIS2_EXTERN axis2_char_t * AXIS2_CALL
00100     axutil_network_handler_get_peer_ip(const axutil_env_t *env,
00101             axis2_socket_t socket);
00102 
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108 
00109 #endif                          /* AXIS2_NETWORK_HANDLER_H */

Generated on Thu May 3 12:31:01 2007 for Axis2/C by  doxygen 1.4.6