gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6635 - GNUnet/src/applications/testing


From: gnunet
Subject: [GNUnet-SVN] r6635 - GNUnet/src/applications/testing
Date: Wed, 26 Mar 2008 20:00:15 -0600 (MDT)

Author: nevans
Date: 2008-03-26 20:00:14 -0600 (Wed, 26 Mar 2008)
New Revision: 6635

Added:
   GNUnet/src/applications/testing/remote.h
Log:


Added: GNUnet/src/applications/testing/remote.h
===================================================================
--- GNUnet/src/applications/testing/remote.h                            (rev 0)
+++ GNUnet/src/applications/testing/remote.h    2008-03-27 02:00:14 UTC (rev 
6635)
@@ -0,0 +1,66 @@
+/*
+     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 applications/testing/remote.h
+ * @brief header for remote.c
+ * @author Nathan Evans
+ */
+
+#ifndef REMOTE_H_
+#define REMOTE_H_
+
+#include "platform.h"
+#include "gnunet_protocols.h"
+#include "gnunet_identity_lib.h"
+#include "gnunet_util.h"
+#include "gnunet_remote_lib.h"
+
+/**
+ * Establish a connection between two GNUnet daemons
+ *
+ * @param port1 client port of the first daemon
+ * @param port2 client port of the second daemon
+ * @param ip1 client ip or hostname for the first daemon
+ * @param ip2 client ip or hostname for the second daemon
+ * @return GNUNET_OK on success, GNUNET_SYSERR on failure
+ */
+int
+GNUNET_REMOTE_connect_daemons (char *ip1, unsigned short port1, char *ip2,
+                               unsigned short port2);
+
+int
+GNUNET_REMOTE_get_daemons_information (char *hostname1, unsigned short port1,
+                                       char *hostname2, unsigned short port2,
+                                       GNUNET_EncName ** host1entry,
+                                       GNUNET_EncName ** host2entry);
+
+/**
+ * Create a topology (connect the running gnunetd's) that corresponds
+ * to the type specified in t.
+ */
+int
+GNUNET_REMOTE_create_topology (GNUNET_REMOTE_TOPOLOGIES t,
+                               int number_of_daemons);
+
+
+#endif /*REMOTE_H_ */
+
+/* end of remote.h */





reply via email to

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