aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-06 13:01:03 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-06 13:01:03 +0000
commit93f5382bea48b79e65e3f634f0fa9af4f25d255d (patch)
treeb9d3e932f9522a98fe475283c31147d20ba31b64 /src
parent0c0e1876f6fbd88b15ab5bad49ab6ce22706d03c (diff)
downloadgnunet-93f5382bea48b79e65e3f634f0fa9af4f25d255d.tar.gz
gnunet-93f5382bea48b79e65e3f634f0fa9af4f25d255d.zip
-minor edits
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_testbed_service.h13
-rw-r--r--src/testbed/testbed.h74
2 files changed, 70 insertions, 17 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index ab8db8783..6b50efe97 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -58,12 +58,13 @@ struct GNUNET_TESTBED_Peer;
58struct GNUNET_TESTBED_Operation; 58struct GNUNET_TESTBED_Operation;
59 59
60/** 60/**
61 * Handle to interact with a GNUnet testbed controller. Each controller has at 61 * Handle to interact with a GNUnet testbed controller. Each
62 * least one master handle which is created when the controller is created; this 62 * controller has at least one master handle which is created when the
63 * master handle interacts with the controller via stdin/stdout of the controller 63 * controller is created; this master handle interacts with the
64 * process. Additionally, controllers can interact with each other (in a P2P 64 * controller process, destroying it destroys the controller (by
65 * fashion); those links are established via TCP/IP on the controller's service 65 * closing stdin of the controller process). Additionally,
66 * port. 66 * controllers can interact with each other (in a P2P fashion); those
67 * links are established via TCP/IP on the controller's service port.
67 */ 68 */
68struct GNUNET_TESTBED_Controller; 69struct GNUNET_TESTBED_Controller;
69 70
diff --git a/src/testbed/testbed.h b/src/testbed/testbed.h
index b7b10ffa6..8fd847bb2 100644
--- a/src/testbed/testbed.h
+++ b/src/testbed/testbed.h
@@ -42,10 +42,10 @@ struct GNUNET_TESTBED_Message
42 struct GNUNET_MessageHeader header; 42 struct GNUNET_MessageHeader header;
43 43
44 /** 44 /**
45 * Host ID that the controller is either given 45 * Host ID that the controller is either given (if this is the
46 * (if this is the dominating client communicating 46 * dominating client) or assumed to have (for peer-connections
47 * via stdin) or assumed to have (for peer-connections 47 * between controllers). A controller must check that all
48 * between controllers). 48 * connections make consistent claims...
49 */ 49 */
50 uint32_t host_id GNUNET_PACKED; 50 uint32_t host_id GNUNET_PACKED;
51 51
@@ -496,13 +496,6 @@ struct GNUNET_TESTBED_PeerCreateSuccessEventMessage
496 */ 496 */
497 uint64_t operation_id GNUNET_PACKED; 497 uint64_t operation_id GNUNET_PACKED;
498 498
499 /**
500 * Identity of the peer.
501 */
502 struct GNUNET_PeerIdentity peer_id;
503
504 /* followed by gzip-compressed configuration of the peer */
505
506}; 499};
507 500
508 501
@@ -532,4 +525,63 @@ struct GNUNET_TESTBED_GenericOperationSuccessEventMessage
532 525
533}; 526};
534 527
528
529
530
531/**
532 * Message sent from client to testing service to
533 * obtain the configuration of a peer.
534 */
535struct GNUNET_TESTBED_PeerGetConfigurationMessage
536{
537
538 /**
539 * Type is
540 */
541 struct GNUNET_MessageHeader header;
542
543 /**
544 * Unique ID for the peer.
545 */
546 uint32_t peer_id GNUNET_PACKED;
547
548 /**
549 * Operation ID that is used to identify this operation.
550 */
551 uint64_t operation_id GNUNET_PACKED;
552
553};
554
555
556
557/**
558 * Event notification from a controller to a client.
559 */
560struct GNUNET_TESTBED_PeerConfigurationInformationMessage
561{
562
563 /**
564 * Type is
565 */
566 struct GNUNET_MessageHeader header;
567
568 /**
569 * Peer identity of the peer that was created.
570 */
571 uint32_t peer_id GNUNET_PACKED;
572
573 /**
574 * Operation ID of the operation that created this event.
575 */
576 uint64_t operation_id GNUNET_PACKED;
577
578 /**
579 * Identity of the peer.
580 */
581 struct GNUNET_PeerIdentity peer_id;
582
583 /* followed by gzip-compressed configuration of the peer */
584
585};
586
535#endif 587#endif