*
* @param filename file with the host specification
* @param hosts set to the hosts found in the file
- * FIXME: we need "***" here!
* @return number of hosts returned in 'hosts', 0 on error
*/
unsigned int
GNUNET_TESTBED_hosts_load_from_file (const char *filename,
- struct GNUNET_TESTBED_Host **hosts);
+ struct GNUNET_TESTBED_Host ***hosts);
/**
/**
* List of hosts we use for the testbed.
*/
-static struct GNUNET_TESTBED_Host **hosts;
+static struct GNUNET_TESTBED_Host *hosts;
/**
* Size of the 'hosts' array.
return;
}
num_hosts = GNUNET_TESTBED_hosts_load_from_file (hosts_file,
- /* FIXME: & */ hosts);
+ &hosts);
if (0 == num_hosts)
{
fprintf (stderr,
*/
struct GNUNET_STREAM_MessageHeader header;
- /**
- * The Selective Acknowledgement Bitmap. Computed relative to the base_seq
- * (bit n corresponds to the Data message with sequence number base_seq+n)
- */
- GNUNET_STREAM_AckBitmap bitmap GNUNET_PACKED;
-
/**
* The sequence number of the next Data Message receiver is
* anticipating. Data messages less than this number are received by receiver
*/
uint32_t base_sequence_number GNUNET_PACKED;
+ /**
+ * The Selective Acknowledgement Bitmap. Computed relative to the base_seq
+ * (bit n corresponds to the Data message with sequence number base_seq+n)
+ */
+ GNUNET_STREAM_AckBitmap bitmap GNUNET_PACKED;
+
/**
* Available buffer space past the last acknowledged buffer (for flow control),
* in bytes.
/**
* The Transmit close message(used to signal transmission is closed)
+ * FIXME: dead struct?
*/
struct GNUNET_STREAM_TransmitCloseMessage
{
*/
unsigned int
GNUNET_TESTBED_hosts_load_from_file (const char *filename,
- struct GNUNET_TESTBED_Host **hosts)
+ struct GNUNET_TESTBED_Host ***hosts)
{
+#if 0
+ struct GNUNET_TESTBED_Host **host_array;
+
+ host_array = GNUNET_malloc (num_hosts * sizeof (struct GNUNET_TESTBED_Host *));
+ host_array[foo] = GNUNET_TESTBED_host_create (...);
+ *hosts = host_array;
+
+ return num_hosts;
+#endif
// see testing_group.c, GNUNET_TESTING_hosts_load
GNUNET_break (0);
return 0;