ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/sockinfo.h
(Generate patch)

Comparing gvpe/src/sockinfo.h (file contents):
Revision 1.10 by pcg, Sat Mar 5 19:13:15 2005 UTC vs.
Revision 1.13 by pcg, Fri Jun 3 05:07:31 2005 UTC

14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with gvpe; if not, write to the Free Software 18 along with gvpe; if not, write to the Free Software
19 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/ 20*/
21 21
22#ifndef VPE_SOCKINFO_H__ 22#ifndef GVPE_SOCKINFO_H__
23#define VPE_SOCKINFO_H__ 23#define GVPE_SOCKINFO_H__
24 24
25#include "netcompat.h" 25#include "netcompat.h"
26 26
27#include "conf.h" 27#include "conf.h"
28 28
64 sockinfo(const sockaddr_in &sa, u8 prot) { set (&sa, prot); } 64 sockinfo(const sockaddr_in &sa, u8 prot) { set (&sa, prot); }
65 sockinfo(const conf_node *conf, u8 prot) { set (conf, prot); } 65 sockinfo(const conf_node *conf, u8 prot) { set (conf, prot); }
66 }; 66 };
67 67
68bool operator == (const sockinfo &a, const sockinfo &b); 68bool operator == (const sockinfo &a, const sockinfo &b);
69bool operator < (const sockinfo &a, const sockinfo &b); 69bool operator < (const sockinfo &a, const sockinfo &b);
70
71inline bool operator != (const sockinfo &a, const sockinfo &b)
72{
73 return !(a == b);
74}
70 75
71#endif 76#endif
72 77

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines