gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6298 - GNUnet/src/transports


From: gnunet
Subject: [GNUnet-SVN] r6298 - GNUnet/src/transports
Date: Thu, 14 Feb 2008 15:18:53 -0700 (MST)

Author: grothoff
Date: 2008-02-14 15:18:53 -0700 (Thu, 14 Feb 2008)
New Revision: 6298

Added:
   GNUnet/src/transports/common.h
Log:
missing

Added: GNUnet/src/transports/common.h
===================================================================
--- GNUnet/src/transports/common.h                              (rev 0)
+++ GNUnet/src/transports/common.h      2008-02-14 22:18:53 UTC (rev 6298)
@@ -0,0 +1,65 @@
+/*
+     This file is part of GNUnet
+     (C) 2008 Christian Grothoff (and other contributing authors)
+
+     GNUnet 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, or (at your
+     option) any later version.
+
+     GNUnet is distributed in the hope that it will be useful, but
+     WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+     General Public License for more details.
+
+     You should have received a copy of the GNU General Public License
+     along with GNUnet; see the file COPYING.  If not, write to the
+     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+     Boston, MA 02111-1307, USA.
+*/
+
+/**
+ * @file transports/common.h
+ * @brief Common definitions for TCP, HTTP and UDP transports
+ * @author Christian Grothoff
+ */
+#ifndef TRANSPORTS_COMMON_H
+#define TRANSPORTS_COMMON_H
+
+/**
+ * Constants for which IP versions are
+ * actually available for the peer.
+ */
+#define VERSION_AVAILABLE_NONE 0
+#define VERSION_AVAILABLE_IPV4 1
+#define VERSION_AVAILABLE_IPV6 2
+
+/**
+ * Host-Address in the network.
+ */
+typedef struct
+{
+  /**
+   * IPv6 address of the sender, network byte order
+   */
+  GNUNET_IPv6Address ipv6;
+
+  /**
+   * claimed IP of the sender, network byte order
+   */
+  GNUNET_IPv4Address ipv4;
+
+  /**
+   * claimed port of the sender, network byte order
+   */
+  unsigned short port;
+
+  /**
+   * Availability.  1 for IPv4 only, 2 for IPv6 only,
+   * 3 for IPv4 and IPv6.
+   */
+  unsigned short availability;
+
+} HostAddress;
+
+#endif


Property changes on: GNUnet/src/transports/common.h
___________________________________________________________________
Name: svn:eol-style
   + native





reply via email to

[Prev in Thread] Current Thread [Next in Thread]