gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated (b0a7ddd39 -> 602a4eba6)


From: gnunet
Subject: [gnunet] branch master updated (b0a7ddd39 -> 602a4eba6)
Date: Sun, 15 Oct 2023 12:18:45 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a change to branch master
in repository gnunet.

    from b0a7ddd39 meson: add conversation tests
     new 155d1a862 TRANSPORT: Rename TNG to transport, cleanup makefile
     new 602a4eba6 meson: readd transport service(tng)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/transport/Makefile.am                          |  20 +-
 ...et-service-tng.c => gnunet-service-transport.c} |   4 +-
 src/transport/gnunet-transport-profiler.c          | 625 ---------------------
 src/transport/meson.build                          |  15 +-
 src/transport/profile_transport.sh                 |  18 -
 src/transport/test_transport_api2_tcp_node1.conf   |   2 +-
 src/transport/test_transport_api2_tcp_node2.conf   |   2 +-
 src/transport/test_transport_api2_tcp_peer1.conf   |   2 +-
 src/transport/test_transport_api2_tcp_peer2.conf   |   2 +-
 src/transport/test_transport_api2_tng_node.conf    |   2 +-
 src/transport/transport.conf.in                    |   2 +-
 11 files changed, 26 insertions(+), 668 deletions(-)
 rename src/transport/{gnunet-service-tng.c => gnunet-service-transport.c} (99%)
 delete mode 100644 src/transport/gnunet-transport-profiler.c
 delete mode 100755 src/transport/profile_transport.sh

diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index eb644706c..9815e0f01 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -96,7 +96,7 @@ libgnunettransportmonitor_la_LDFLAGS = \
 
 
 libexec_PROGRAMS = \
- gnunet-service-tng \
+ gnunet-service-transport \
  gnunet-communicator-unix \
  gnunet-communicator-udp \
  gnunet-communicator-tcp
@@ -168,15 +168,6 @@ gnunet_communicator_quic_LDADD = \
 endif
 endif
 
-#gnunet_transport_profiler_SOURCES = \
-# gnunet-transport-profiler.c
-#gnunet_transport_profiler_LDADD = \
-#  libgnunettransport.la \
-#  $(top_builddir)/src/hello/libgnunethello.la \
-#  $(top_builddir)/src/ats/libgnunetats.la \
-#  $(top_builddir)/src/util/libgnunetutil.la \
-#  $(GN_LIBINTL)
-
 #gnunet_transport_SOURCES = \
 # gnunet-transport.c
 #gnunet_transport_LDADD = \
@@ -185,9 +176,9 @@ endif
 #  $(top_builddir)/src/util/libgnunetutil.la \
 #  $(GN_LIBINTL)
 
-gnunet_service_tng_SOURCES = \
- gnunet-service-tng.c transport.h
-gnunet_service_tng_LDADD = \
+gnunet_service_transport_SOURCES = \
+ gnunet-service-transport.c transport.h
+gnunet_service_transport_LDADD = \
   $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
   $(top_builddir)/src/hello/libgnunethello.la \
   $(top_builddir)/src/statistics/libgnunetstatistics.la \
@@ -309,8 +300,6 @@ check_PROGRAMS = \
  test_communicator_backchannel-udp \
  test_communicator_bidirect-tcp
 
-# Only test TNG if we run experimental
-if HAVE_EXPERIMENTAL
 check_SCRIPTS= \
   test_transport_start_testcase.sh \
   test_transport_simple_send_performance.sh \
@@ -322,7 +311,6 @@ check_SCRIPTS= \
   test_transport_udp_backchannel.sh \
   test_transport_simple_send_dv_circle.sh \
   test_transport_simple_send_dv_inverse.sh
-endif
 
 if ENABLE_TEST_RUN
 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export 
PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset 
XDG_CONFIG_HOME;
diff --git a/src/transport/gnunet-service-tng.c 
b/src/transport/gnunet-service-transport.c
similarity index 99%
rename from src/transport/gnunet-service-tng.c
rename to src/transport/gnunet-service-transport.c
index 7a7603e91..ec3019161 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-transport.c
@@ -18,8 +18,8 @@
      SPDX-License-Identifier: AGPL3.0-or-later
  */
 /**
- * @file transport/gnunet-service-tng.c
- * @brief main for gnunet-service-tng
+ * @file transport/gnunet-service-transport.c
+ * @brief main for gnunet-service-transport
  * @author Christian Grothoff
  *
  * TODO:
diff --git a/src/transport/gnunet-transport-profiler.c 
b/src/transport/gnunet-transport-profiler.c
deleted file mode 100644
index 6e5204e28..000000000
--- a/src/transport/gnunet-transport-profiler.c
+++ /dev/null
@@ -1,625 +0,0 @@
-/*
-   This file is part of GNUnet.
-   Copyright (C) 2011-2016 GNUnet e.V.
-
-   GNUnet is free software: you can redistribute it and/or modify it
-   under the terms of the GNU Affero General Public License as published
-   by the Free Software Foundation, either version 3 of the License,
-   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
-   Affero General Public License for more details.
-
-   You should have received a copy of the GNU Affero General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-     SPDX-License-Identifier: AGPL3.0-or-later
- */
-
-/**
- * @file src/transport/gnunet-transport-profiler.c
- * @brief Tool to help benchmark the transport subsystem.
- * @author Christian Grothoff
- * @author Nathan Evans
- *
- * This utility can be used to benchmark a transport mechanism for
- * GNUnet.
- */
-#include "platform.h"
-#include "gnunet_util_lib.h"
-#include "gnunet_protocols.h"
-#include "gnunet_ats_service.h"
-#include "gnunet_transport_service.h"
-
-
-struct Iteration
-{
-  struct Iteration *next;
-  struct Iteration *prev;
-  struct GNUNET_TIME_Absolute start;
-  struct GNUNET_TIME_Absolute end;
-
-  struct GNUNET_TIME_Relative dur;
-
-  /* Transmission rate for this iteration in KB/s */
-  float rate;
-
-  unsigned int msgs_sent;
-};
-
-
-/**
- * Timeout for a connections
- */
-#define CONNECT_TIMEOUT \
-  GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
-
-/**
- * Benchmarking block size in bye
- */
-#define DEFAULT_MESSAGE_SIZE 1024
-
-/**
- * Benchmarking message count
- */
-#define DEFAULT_MESSAGE_COUNT 1024
-
-/**
- * Benchmarking iteration count
- */
-#define DEFAULT_ITERATION_COUNT 1
-
-/**
- * Option -s.
- */
-static int benchmark_send;
-
-/**
- * Option -b.
- */
-static int benchmark_receive;
-
-/**
- * Option -n.
- */
-static unsigned int benchmark_count;
-
-/**
- * Option -i.
- */
-static unsigned int benchmark_iterations;
-
-/**
- * Option -m.
- */
-static unsigned int benchmark_size;
-
-/**
- * Benchmark running
- */
-static unsigned int benchmark_running;
-
-/**
- * Which peer should we connect to?
- */
-static char *cpid;
-
-/**
- * Handle to transport service.
- */
-static struct GNUNET_TRANSPORT_CoreHandle *handle;
-
-/**
- * Handle to ATS service.
- */
-static struct GNUNET_ATS_ConnectivityHandle *ats;
-
-/**
- * Configuration handle
- */
-static struct GNUNET_CONFIGURATION_Handle *cfg;
-
-/**
- * Try_connect handle
- */
-static struct GNUNET_ATS_ConnectivitySuggestHandle *ats_sh;
-
-static struct Iteration *ihead;
-
-static struct Iteration *itail;
-
-/**
- * Global return value (0 success).
- */
-static int ret;
-
-/**
- * Handle for transmissions.
- */
-static struct GNUNET_MQ_Handle *mq;
-
-static struct GNUNET_TRANSPORT_Blacklist *bl_handle;
-
-/**
- * Identity of the peer we transmit to / connect to.
- * (equivalent to 'cpid' string).
- */
-static struct GNUNET_PeerIdentity pid;
-
-/**
- * Selected level of verbosity.
- */
-static unsigned int verbosity;
-
-
-/**
- * Task run in monitor mode when the user presses CTRL-C to abort.
- * Stops monitoring activity.
- *
- * @param cls NULL
- */
-static void
-shutdown_task (void *cls)
-{
-  struct Iteration *icur;
-  struct Iteration *inext;
-
-  unsigned int iterations;
-
-  unsigned long long avg_duration;
-  float avg_rate;
-  float stddev_rate;
-  float stddev_duration;
-
-  if (NULL != ats_sh)
-  {
-    GNUNET_ATS_connectivity_suggest_cancel (ats_sh);
-    ats_sh = NULL;
-  }
-  if (NULL != bl_handle)
-  {
-    GNUNET_TRANSPORT_blacklist_cancel (bl_handle);
-    bl_handle = NULL;
-  }
-  if (NULL != ats)
-  {
-    GNUNET_ATS_connectivity_done (ats);
-    ats = NULL;
-  }
-  if (NULL != handle)
-  {
-    GNUNET_TRANSPORT_core_disconnect (handle);
-    handle = NULL;
-  }
-
-  if (verbosity > 0)
-    fprintf (stdout, "\n");
-
-  /* Output format:
-   * All time values in ms
-   * Rate in KB/s
-   * #messages;#messagesize;#avg_dur;#avg_rate;#duration_i0;#duration_i0;... */
-
-  if (benchmark_send)
-  {
-    /* First iteration to calculate avg and stddev */
-    iterations = 0;
-    avg_duration = 0;
-    avg_rate = 0.0;
-
-    inext = ihead;
-    while (NULL != (icur = inext))
-    {
-      inext = icur->next;
-      icur->rate = ((benchmark_count * benchmark_size) / 1024)
-                   / ((float) icur->dur.rel_value_us / (1000 * 1000));
-      if (verbosity > 0)
-        fprintf (stdout,
-                 _ ("%llu B in %llu ms == %.2f KB/s!\n"),
-                 ((long long unsigned int) benchmark_count * benchmark_size),
-                 ((long long unsigned int) icur->dur.rel_value_us / 1000),
-                 (float) icur->rate);
-
-      avg_duration += icur->dur.rel_value_us / (1000);
-      avg_rate += icur->rate;
-      iterations++;
-    }
-    if (0 == iterations)
-      iterations = 1;   /* avoid division by zero */
-    /* Calculate average rate */
-    avg_rate /= iterations;
-    /* Calculate average duration */
-    avg_duration /= iterations;
-
-    stddev_rate = 0;
-    stddev_duration = 0;
-    inext = ihead;
-    while (NULL != (icur = inext))
-    {
-      inext = icur->next;
-      stddev_rate += ((icur->rate - avg_rate) * (icur->rate - avg_rate));
-      stddev_duration += (((icur->dur.rel_value_us / 1000) - avg_duration)
-                          * ((icur->dur.rel_value_us / 1000) - avg_duration));
-    }
-    /* Calculate standard deviation rate */
-    stddev_rate = stddev_rate / iterations;
-    stddev_rate = sqrtf (stddev_rate);
-
-    /* Calculate standard deviation duration */
-    stddev_duration = stddev_duration / iterations;
-    stddev_duration = sqrtf (stddev_duration);
-
-    /* Output */
-    fprintf (stdout,
-             "%u;%u;%llu;%llu;%.2f;%.2f",
-             benchmark_count,
-             benchmark_size,
-             avg_duration,
-             (unsigned long long) stddev_duration,
-             avg_rate,
-             stddev_rate);
-
-    inext = ihead;
-    while (NULL != (icur = inext))
-    {
-      inext = icur->next;
-      GNUNET_CONTAINER_DLL_remove (ihead, itail, icur);
-
-      fprintf (stdout,
-               ";%llu;%.2f",
-               (long long unsigned int) (icur->dur.rel_value_us / 1000),
-               icur->rate);
-
-      GNUNET_free (icur);
-    }
-  }
-#if 0
-  if (benchmark_receive)
-  {
-    duration = GNUNET_TIME_absolute_get_duration (start_time);
-    fprintf (stdout,
-             "Received %llu bytes/s (%llu bytes in %s)\n",
-             1000LL * 1000LL * traffic_received / (1 + duration.rel_value_us),
-             traffic_received,
-             GNUNET_STRINGS_relative_time_to_string (duration, GNUNET_YES));
-  }
-#endif
-  fprintf (stdout, "\n");
-}
-
-
-static void
-iteration_done ();
-
-
-/**
- * Function called to notify a client about the socket
- * begin ready to queue more data.  @a buf will be
- * NULL and @a size zero if the socket was closed for
- * writing in the meantime.
- *
- * @param cls closure
- * @param size number of bytes available in @a buf
- * @param buf where the callee should write the message
- * @return number of bytes written to @a buf
- */
-static void
-send_msg (void *cls)
-{
-  struct GNUNET_MQ_Envelope *env;
-  struct GNUNET_MessageHeader *m;
-
-  if (NULL == mq)
-    return;
-  env = GNUNET_MQ_msg_extra (m, benchmark_size, GNUNET_MESSAGE_TYPE_DUMMY);
-  memset (&m[1], 52, benchmark_size - sizeof(struct GNUNET_MessageHeader));
-
-  if (itail->msgs_sent < benchmark_count)
-  {
-    GNUNET_MQ_notify_sent (env, &send_msg, NULL);
-  }
-  else
-  {
-    iteration_done ();
-  }
-  GNUNET_MQ_send (mq, env);
-  if ((verbosity > 0) && (0 == itail->msgs_sent % 10))
-    fprintf (stdout, ".");
-}
-
-
-static void
-iteration_start ()
-{
-  struct Iteration *icur;
-
-  ret = 0;
-  if (! benchmark_send)
-    return;
-  benchmark_running = GNUNET_YES;
-  icur = GNUNET_new (struct Iteration);
-  GNUNET_CONTAINER_DLL_insert_tail (ihead, itail, icur);
-  icur->start = GNUNET_TIME_absolute_get ();
-  if (verbosity > 0)
-    fprintf (
-      stdout,
-      "\nStarting benchmark, starting to send %u messages in %u byte blocks\n",
-      benchmark_count,
-      benchmark_size);
-  send_msg (NULL);
-}
-
-
-static void
-iteration_done ()
-{
-  static int it_count = 0;
-
-  it_count++;
-  itail->dur = GNUNET_TIME_absolute_get_duration (itail->start);
-  if (it_count == benchmark_iterations)
-  {
-    benchmark_running = GNUNET_NO;
-    GNUNET_SCHEDULER_shutdown ();
-    return;
-  }
-  iteration_start ();
-}
-
-
-/**
- * Function called to notify transport users that another
- * peer connected to us.
- *
- * @param cls closure
- * @param peer the peer that connected
- * @param m message queue for transmissions
- * @return NULL
- */
-static void *
-notify_connect (void *cls,
-                const struct GNUNET_PeerIdentity *peer,
-                struct GNUNET_MQ_Handle *m)
-{
-  if (0 != memcmp (&pid, peer, sizeof(struct GNUNET_PeerIdentity)))
-  {
-    fprintf (stdout, "Connected to different peer `%s'\n", GNUNET_i2s (&pid));
-    return NULL;
-  }
-
-  if (verbosity > 0)
-    fprintf (stdout, "Successfully connected to `%s'\n", GNUNET_i2s (&pid));
-  mq = m;
-  iteration_start ();
-  return NULL;
-}
-
-
-/**
- * Function called to notify transport users that another
- * peer disconnected from us.
- *
- * @param cls closure
- * @param peer the peer that disconnected
- * @param internal_cls NULL
- */
-static void
-notify_disconnect (void *cls,
-                   const struct GNUNET_PeerIdentity *peer,
-                   void *internal_cls)
-{
-  if (0 != memcmp (&pid, peer, sizeof(struct GNUNET_PeerIdentity)))
-    return;
-  mq = NULL;
-  if (GNUNET_YES == benchmark_running)
-  {
-    fprintf (stdout,
-             "Disconnected from peer `%s' while benchmarking\n",
-             GNUNET_i2s (&pid));
-    return;
-  }
-}
-
-
-/**
- * Function called by the transport for each received message.
- *
- * @param cls closure
- * @param message the message
- * @return #GNUNET_OK
- */
-static int
-check_dummy (void *cls, const struct GNUNET_MessageHeader *message)
-{
-  return GNUNET_OK; /* all messages are fine */
-}
-
-
-/**
- * Function called by the transport for each received message.
- *
- * @param cls closure
- * @param message the message
- */
-static void
-handle_dummy (void *cls, const struct GNUNET_MessageHeader *message)
-{
-  if (! benchmark_receive)
-    return;
-  if (verbosity > 0)
-    fprintf (stdout,
-             "Received %u bytes\n",
-             (unsigned int) ntohs (message->size));
-}
-
-
-static int
-blacklist_cb (void *cls, const struct GNUNET_PeerIdentity *peer)
-{
-  if (0 != memcmp (&pid, peer, sizeof(struct GNUNET_PeerIdentity)))
-  {
-    if (verbosity > 0)
-      fprintf (stdout, "Denying connection to `%s'\n", GNUNET_i2s (peer));
-    return GNUNET_SYSERR;
-  }
-  return GNUNET_OK;
-}
-
-
-/**
- * Main function that will be run by the scheduler.
- *
- * @param cls closure
- * @param args remaining command-line arguments
- * @param cfgfile name of the configuration file used (for saving, can be 
NULL!)
- * @param mycfg configuration
- */
-static void
-run (void *cls,
-     char *const *args,
-     const char *cfgfile,
-     const struct GNUNET_CONFIGURATION_Handle *mycfg)
-{
-  struct GNUNET_MQ_MessageHandler handlers[] =
-  { GNUNET_MQ_hd_var_size (dummy,
-                           GNUNET_MESSAGE_TYPE_DUMMY,
-                           struct GNUNET_MessageHeader,
-                           NULL),
-    GNUNET_MQ_handler_end () };
-
-  cfg = (struct GNUNET_CONFIGURATION_Handle *) mycfg;
-
-  ret = 1;
-  if (GNUNET_MAX_MESSAGE_SIZE <= benchmark_size)
-  {
-    fprintf (stderr, "Message size too big!\n");
-    return;
-  }
-
-  if (NULL == cpid)
-  {
-    fprintf (stderr, "No peer identity given\n");
-    return;
-  }
-  if (GNUNET_OK != GNUNET_CRYPTO_eddsa_public_key_from_string (cpid,
-                                                               strlen (cpid),
-                                                               
&pid.public_key))
-  {
-    fprintf (stderr, "Failed to parse peer identity `%s'\n", cpid);
-    return;
-  }
-  if (1 == benchmark_send)
-  {
-    if (verbosity > 0)
-      fprintf (stderr,
-               "Trying to send %u messages with size %u to peer `%s'\n",
-               benchmark_count,
-               benchmark_size,
-               GNUNET_i2s (&pid));
-  }
-  else if (1 == benchmark_receive)
-  {
-    fprintf (stderr,
-             "Trying to receive messages from peer `%s'\n",
-             GNUNET_i2s (&pid));
-  }
-  else
-  {
-    fprintf (stderr, "No operation given\n");
-    return;
-  }
-
-  ats = GNUNET_ATS_connectivity_init (cfg);
-  if (NULL == ats)
-  {
-    fprintf (stderr, "Failed to connect to ATS service\n");
-    ret = 1;
-    return;
-  }
-
-  handle = GNUNET_TRANSPORT_core_connect (cfg,
-                                          NULL,
-                                          handlers,
-                                          NULL,
-                                          &notify_connect,
-                                          &notify_disconnect,
-                                          NULL);
-  if (NULL == handle)
-  {
-    fprintf (stderr, "Failed to connect to transport service\n");
-    GNUNET_ATS_connectivity_done (ats);
-    ats = NULL;
-    ret = 1;
-    return;
-  }
-
-  bl_handle = GNUNET_TRANSPORT_blacklist (cfg, &blacklist_cb, NULL);
-  ats_sh = GNUNET_ATS_connectivity_suggest (ats, &pid, 1);
-  GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL);
-}
-
-
-int
-main (int argc, char *const *argv)
-{
-  int res;
-
-  benchmark_count = DEFAULT_MESSAGE_COUNT;
-  benchmark_size = DEFAULT_MESSAGE_SIZE;
-  benchmark_iterations = DEFAULT_ITERATION_COUNT;
-  benchmark_running = GNUNET_NO;
-
-  struct GNUNET_GETOPT_CommandLineOption options[] = {
-    GNUNET_GETOPT_option_flag ('s',
-                               "send",
-                               gettext_noop ("send data to peer"),
-                               &benchmark_send),
-    GNUNET_GETOPT_option_flag ('r',
-                               "receive",
-                               gettext_noop ("receive data from peer"),
-                               &benchmark_receive),
-    GNUNET_GETOPT_option_uint ('i',
-                               "iterations",
-                               NULL,
-                               gettext_noop ("iterations"),
-                               &benchmark_iterations),
-    GNUNET_GETOPT_option_uint ('n',
-                               "number",
-                               NULL,
-                               gettext_noop ("number of messages to send"),
-                               &benchmark_count),
-    GNUNET_GETOPT_option_uint ('m',
-                               "messagesize",
-                               NULL,
-                               gettext_noop ("message size to use"),
-                               &benchmark_size),
-    GNUNET_GETOPT_option_string ('p',
-                                 "peer",
-                                 "PEER",
-                                 gettext_noop ("peer identity"),
-                                 &cpid),
-    GNUNET_GETOPT_option_verbose (&verbosity),
-    GNUNET_GETOPT_OPTION_END
-  };
-
-  if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
-    return 2;
-
-  res =
-    GNUNET_PROGRAM_run (argc,
-                        argv,
-                        "gnunet-transport",
-                        gettext_noop ("Direct access to transport service."),
-                        options,
-                        &run,
-                        NULL);
-  GNUNET_free_nz ((void *) argv);
-  if (GNUNET_OK == res)
-    return ret;
-  return 1;
-}
-
-
-/* end of gnunet-transport-profiler.c */
diff --git a/src/transport/meson.build b/src/transport/meson.build
index 423bfc8a5..65a2beeb3 100644
--- a/src/transport/meson.build
+++ b/src/transport/meson.build
@@ -3,7 +3,7 @@ libgnunettransportcore_src = ['transport_api2_core.c']
 libgnunettransportcommunicator_src = ['transport_api2_communication.c']
 libgnunettransportmonitor_src = ['transport_api2_monitor.c']
 
-gnunetservicetransport_src = ['gnunet-service-tng.c']
+gnunetservicetransport_src = ['gnunet-service-transport.c']
 gnunetcommunicatortcp_src = ['gnunet-communicator-tcp.c']
 gnunetcommunicatorudp_src = ['gnunet-communicator-udp.c']
 gnunetcommunicatorunix_src = ['gnunet-communicator-unix.c']
@@ -104,6 +104,19 @@ libgnunettransporttesting2 = 
library('gnunettransporttesting2',
         install_dir: get_option('libdir'))
 libgnunettransporttesting2_dep = declare_dependency(link_with : 
libgnunettransporttesting2)
 
+executable ('gnunet-service-transport',
+            gnunetservicetransport_src,
+            dependencies: [libgnunettransportcommunicator_dep,
+                           libgnunetpeerstore_dep,
+                           libgnunetstatistics_dep,
+                           libgnunethello_dep,
+                           libgnunetnat_dep,
+                           gcrypt_dep,
+                           libgnunetutil_dep],
+            include_directories: [incdir, configuration_inc],
+            install: true,
+            install_dir: get_option('libdir') / 'gnunet' / 'libexec')
+
 executable ('gnunet-communicator-unix',
             gnunetcommunicatorunix_src,
             dependencies: [libgnunettransportcommunicator_dep,
diff --git a/src/transport/profile_transport.sh 
b/src/transport/profile_transport.sh
deleted file mode 100755
index 0e6935fc7..000000000
--- a/src/transport/profile_transport.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-C_ITERATIONS=5
-C_MESSAGE_DELTA=10
-C_MESSAGE_START=10
-C_MESSAGE_END=2000
-
-#for i in {$C_MESSAGE_START..$C_MESSAGE_END..$C_MESSAGE_DELTA}
-#  do
-#     echo "Welcome $i times"
-# done
-
-
-for $((cur=$C_MESSAGE_START; cur<=$C_MESSAGE_END; cur = cur + 
$C_MESSAGE_DELTA))
-{
-       ./gnunet-transport-profiler -p  
NSGWRTMHG2YJK9KZSTEWKJ5TK20AGRDBWHFA1ZNKKZ7T360MZ8S0 -s -c 
perf_https_peer1.conf -n 20240 -m $cur -i 4
-       sleep 1
-}
diff --git a/src/transport/test_transport_api2_tcp_node1.conf 
b/src/transport/test_transport_api2_tcp_node1.conf
index 37b6f08d1..463ec61d8 100644
--- a/src/transport/test_transport_api2_tcp_node1.conf
+++ b/src/transport/test_transport_api2_tcp_node1.conf
@@ -3,7 +3,7 @@
 GNUNET_TEST_HOME = $GNUNET_TMP/test-transport/api-tcp-p1/
 
 [transport]
-BINARY = gnunet-service-tng
+BINARY = gnunet-service-transport
 PLUGINS = tcp
 #PREFIX = valgrind --leak-check=full --track-origins=yes --trace-children=yes 
--log-file=$GNUNET_TEST_HOME/vg_peer1-%p 
 UNIXPATH = $GNUNET_RUNTIME_DIR/tng-p1.sock
diff --git a/src/transport/test_transport_api2_tcp_node2.conf 
b/src/transport/test_transport_api2_tcp_node2.conf
index a4557e7ea..b7f92869e 100644
--- a/src/transport/test_transport_api2_tcp_node2.conf
+++ b/src/transport/test_transport_api2_tcp_node2.conf
@@ -3,7 +3,7 @@
 GNUNET_TEST_HOME = $GNUNET_TMP/test-transport/api-tcp-p2/
 
 [transport]
-BINARY = gnunet-service-tng
+BINARY = gnunet-service-transport
 #PREFIX = valgrind --log-file=$GNUNET_TEST_HOME/vg_peer2-%p
 UNIXPATH = $GNUNET_RUNTIME_DIR/tng-p2.sock
 
diff --git a/src/transport/test_transport_api2_tcp_peer1.conf 
b/src/transport/test_transport_api2_tcp_peer1.conf
index 5a21b2adb..54ec9fd9f 100644
--- a/src/transport/test_transport_api2_tcp_peer1.conf
+++ b/src/transport/test_transport_api2_tcp_peer1.conf
@@ -3,7 +3,7 @@
 GNUNET_TEST_HOME = $GNUNET_TMP/test-transport/api-tcp-p1/
 
 [transport]
-BINARY = gnunet-service-tng
+BINARY = gnunet-service-transport
 PLUGINS = tcp
 #PREFIX = valgrind --log-file=$GNUNET_TEST_HOME/vg_peer1-%p
 UNIXPATH = $GNUNET_RUNTIME_DIR/tng-p1.sock
diff --git a/src/transport/test_transport_api2_tcp_peer2.conf 
b/src/transport/test_transport_api2_tcp_peer2.conf
index e42704100..7ae5ac697 100644
--- a/src/transport/test_transport_api2_tcp_peer2.conf
+++ b/src/transport/test_transport_api2_tcp_peer2.conf
@@ -3,7 +3,7 @@
 GNUNET_TEST_HOME = $GNUNET_TMP/test-transport/api-tcp-p2/
 
 [transport]
-BINARY = gnunet-service-tng
+BINARY = gnunet-service-transport
 #PREFIX = valgrind --log-file=$GNUNET_TEST_HOME/vg_peer2-%p
 UNIXPATH = $GNUNET_RUNTIME_DIR/tng-p2.sock
 
diff --git a/src/transport/test_transport_api2_tng_node.conf 
b/src/transport/test_transport_api2_tng_node.conf
index b2514b39f..c50ccf662 100644
--- a/src/transport/test_transport_api2_tng_node.conf
+++ b/src/transport/test_transport_api2_tng_node.conf
@@ -3,7 +3,7 @@
 GNUNET_TEST_HOME = $GNUNET_TMP/test-transport/api-tcp-p1/
 
 [transport]
-BINARY = gnunet-service-tng
+BINARY = gnunet-service-transport
 #PREFIX = valgrind --leak-check=full --track-origins=yes --trace-children=yes 
--log-file=$GNUNET_TEST_HOME/vg_peer1-%p 
 UNIXPATH = $GNUNET_RUNTIME_DIR/tng-p1.sock
 
diff --git a/src/transport/transport.conf.in b/src/transport/transport.conf.in
index d4020e09c..de4855c6a 100644
--- a/src/transport/transport.conf.in
+++ b/src/transport/transport.conf.in
@@ -2,7 +2,7 @@
 START_ON_DEMAND = @START_ON_DEMAND@
 @JAVAPORT@PORT = 2091
 HOSTNAME = localhost
-BINARY = gnunet-service-tng
+BINARY = gnunet-service-transport
 # PREFIX = valgrind
 
 # Maximum number of neighbours PER PLUGIN (not in total).

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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