00001 /***************************** 00002 File: addrconv.h 00003 Language: C++ (header) 00004 Project: H3DNetworkingUtils 00005 The contents of this file are subject to the Mozilla Public License 00006 Version 1.1 (the "License"); you may not use this file except in 00007 compliance with the License. You may obtain a copy of the License at 00008 http://www.mozilla.org/MPL/ 00009 00010 Software distributed under the License is distributed on an "AS IS" 00011 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 00012 License for the specific language governing rights and limitations 00013 under the License. 00014 00015 The Original Code is H3DNetworkingUtils v1.0. 00016 00017 The Initial Developer of the Original Code is CSIRO. 00018 Portions created by the Initial Developer are Copyright (C) 1009 CSIRO. All Rights Reserved. 00019 Contributor(s): 00020 Chris Gunn <Chris.Gunn@csiro.au> <ChrisJGunn@gmail.com> 00021 ***************************/ 00022 00025 00026 #ifndef _addrconv_ 00027 #define _addrconv_ 00028 00029 /* This is from the BIND 4.9.4 release, modified to compile by itself */ 00030 00031 /* Copyright (c) 1996 by Internet Software Consortium. 00032 * 00033 * Permission to use, copy, modify, and distribute this software for any 00034 * purpose with or without fee is hereby granted, provided that the above 00035 * copyright notice and this permission notice appear in all copies. 00036 * 00037 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS 00038 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 00039 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE 00040 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 00041 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 00042 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 00043 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 00044 * SOFTWARE. 00045 */ 00046 #include "H3DNetworkingUtils/Config.h" 00047 00048 #ifdef __cplusplus 00049 extern "C" { 00050 #endif 00051 00052 H3D_NETWORKING_UTILS_DLL_SPEC const char * inet_ntop(int af, const void *src, char *dst, size_t size); 00053 H3D_NETWORKING_UTILS_DLL_SPEC int inet_pton(int af, const char *src, void *dst); 00054 00055 #ifdef __cplusplus 00056 } 00057 #endif 00058 00059 #endif