[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22423 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22423 - gnunet/src/transport |
Date: |
Mon, 2 Jul 2012 11:02:08 +0200 |
Author: wachs
Date: 2012-07-02 11:02:08 +0200 (Mon, 02 Jul 2012)
New Revision: 22423
Modified:
gnunet/src/transport/Makefile.am
gnunet/src/transport/transport-testing.h
Log:
- some docu and new testing lib
Modified: gnunet/src/transport/Makefile.am
===================================================================
--- gnunet/src/transport/Makefile.am 2012-07-02 07:52:35 UTC (rev 22422)
+++ gnunet/src/transport/Makefile.am 2012-07-02 09:02:08 UTC (rev 22423)
@@ -73,6 +73,7 @@
$(top_builddir)/src/transport/libgnunettransport.la \
$(top_builddir)/src/hello/libgnunethello.la \
$(top_builddir)/src/util/libgnunetutil.la \
+ $(top_builddir)/src/testing/libgnunettesting.la \
$(GN_LIBINTL)
libgnunettransporttesting_la_DEPENDENCIES = \
libgnunettransport.la
Modified: gnunet/src/transport/transport-testing.h
===================================================================
--- gnunet/src/transport/transport-testing.h 2012-07-02 07:52:35 UTC (rev
22422)
+++ gnunet/src/transport/transport-testing.h 2012-07-02 09:02:08 UTC (rev
22423)
@@ -33,6 +33,7 @@
#include "gnunet_program_lib.h"
#include "gnunet_container_lib.h"
#include "gnunet_transport_service.h"
+#include "gnunet_testing_lib-new.h"
#define GNUNET_TRANSPORT_TESTING_ConnectRequest void *
@@ -59,7 +60,9 @@
void *cls);
-
+/**
+ * Definition for a transport testing handle
+ */
struct GNUNET_TRANSPORT_TESTING_handle;
/**
@@ -67,37 +70,94 @@
*/
struct PeerContext
{
+ /**
+ * Next element in the DLL
+ */
struct PeerContext *next;
+
+ /**
+ * Previous element in the DLL
+ */
struct PeerContext *prev;
+ /**
+ * Transport testing handle this peer belongs to
+ */
struct GNUNET_TRANSPORT_TESTING_handle *tth;
+ /**
+ * Peer's configuration
+ */
struct GNUNET_CONFIGURATION_Handle *cfg;
+ /**
+ * Peer's transport service handle
+ */
struct GNUNET_TRANSPORT_Handle *th;
+ /**
+ * Peer's transport get hello handle to retrieve peer's HELLO message
+ */
struct GNUNET_TRANSPORT_GetHelloHandle *ghh;
+ /**
+ * Peer's testing handle
+ */
+ struct GNUNET_TESTING_Peer *peer;
+
+ /**
+ * Peer identity
+ */
struct GNUNET_PeerIdentity id;
+ /**
+ * Handle for the peer's ARM process
+ */
struct GNUNET_OS_Process *arm_proc;
+ /**
+ * Receive callback
+ */
GNUNET_TRANSPORT_ReceiveCallback rec;
+ /**
+ * Notify connect callback
+ */
GNUNET_TRANSPORT_NotifyConnect nc;
+ /**
+ * Notify disconnect callback
+ */
GNUNET_TRANSPORT_NotifyDisconnect nd;
+ /**
+ * Startup completed callback
+ */
GNUNET_TRANSPORT_TESTING_start_cb start_cb;
+ /**
+ * Peers HELLO Message
+ */
struct GNUNET_HELLO_Message *hello;
+ /**
+ * Closure for the callbacks
+ */
void *cb_cls;
+ /**
+ * Peer's service home directory
+ */
char *servicehome;
+ /**
+ * Hostkey file
+ */
char *hostkeyfile;
+ /**
+ * An unique number to identify the peer
+ */
unsigned int no;
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22423 - gnunet/src/transport,
gnunet <=