netsupp_win32.cpp
00001 /* 00002 * This file is part of the KDE libraries 00003 * Copyright (C) 2000-2003 Thiago Macieira <thiago.macieira@kdemail.net>> 00004 * 00005 * win32 version of netsupp.cpp 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public License 00018 * along with this library; see the file COPYING.LIB. If not, write to 00019 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 * Boston, MA 02110-1301, USA. 00021 **/ 00022 00023 00024 #include "netsupp.h" 00025 00026 TDECORE_EXPORT void kde_freeaddrinfo(struct kde_addrinfo *ai) 00027 { 00028 //TODO 00029 } 00030 00031 TDECORE_EXPORT int kde_getaddrinfo(const char *name, const char *service, 00032 const struct addrinfo* hint, 00033 struct kde_addrinfo** result) 00034 { 00035 //TODO 00036 int err = EAI_SERVICE; 00037 return err; 00038 } 00039 00040 TDECORE_EXPORT char *gai_strerror(int errorcode) 00041 { 00042 return 0; 00043 } 00044 int getnameinfo(const struct sockaddr *sa, 00045 unsigned int salen, 00046 char *host, size_t hostlen, 00047 char *serv, size_t servlen, 00048 int flags) 00049 { 00050 //TODO 00051 return -1; 00052 } 00053 00054 TDECORE_EXPORT const char* inet_ntop(int af, const void *cp, char *buf, size_t len) 00055 { 00056 //TODO 00057 return 0; 00058 } 00059 00060 TDECORE_EXPORT int inet_pton(int af, const char *cp, void *buf) 00061 { 00062 //TODO 00063 return -1; 00064 } 00065