--- gvpe/src/sockinfo.h 2003/04/05 17:54:22 1.5 +++ gvpe/src/sockinfo.h 2005/03/03 16:54:34 1.9 @@ -1,9 +1,10 @@ /* sockinfo.h -- socket address management - - Copyright (C) 2003 Marc Lehmann + Copyright (C) 2003 Marc Lehmann - This program is free software; you can redistribute it and/or modify + This file is part of GVPE. + + GVPE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. @@ -14,15 +15,14 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software + along with gvpe; if not, write to the Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef VPE_SOCKINFO_H__ #define VPE_SOCKINFO_H__ -#include -#include +#include "netcompat.h" #include "conf.h" @@ -37,6 +37,7 @@ void set (const sockaddr_in *sa, u8 prot_); void set (const conf_node *conf, u8 prot_); + void set (const char *hostname, u16 port_, u8 prot_); // return the supported protocols u8 supported_protocols (conf_node *conf = 0);