void GNUNET_TRANSPORT_disconnect (struct GNUNET_TRANSPORT_Handle *handle);
+/**
+ * Ask the transport service to establish a connection to
+ * the given peer.
+ *
+ * @param handle connection to transport service
+ * @param target who we should try to connect to
+ */
+void
+GNUNET_TRANSPORT_try_connect (struct GNUNET_TRANSPORT_Handle *handle,
+ const struct GNUNET_PeerIdentity *target);
+
+
/**
* Set the share of incoming/outgoing bandwidth for the given
* peer to the specified amount.
GNUNET_TRANSPORT_set_quota (struct GNUNET_TRANSPORT_Handle *handle,
const struct GNUNET_PeerIdentity *target,
struct GNUNET_BANDWIDTH_Value32NBO quota_in,
- struct GNUNET_BANDWIDTH_Value32NBO quota_out,
- struct GNUNET_TIME_Relative timeout,
- GNUNET_SCHEDULER_Task cont, void *cont_cls);
+ struct GNUNET_BANDWIDTH_Value32NBO quota_out);
/**
};
+/**
+ * Message used to ask the transport service to create a connection.
+ */
+struct TryConnectMessage
+{
+
+ /**
+ * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_TRY_CONNECT
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * for alignment
+ */
+ uint32_t reserved;
+
+ /**
+ * About which peer are we talking here?
+ */
+ struct GNUNET_PeerIdentity peer;
+
+};
+
+
/**
* Message used to notify the transport API about a message
* received from the network. The actual message follows.
sqc->quota_in = quota_in;
schedule_control_transmit (handle,
sizeof (struct QuotaSetMessage),
- GNUNET_NO, timeout, &send_set_quota, sqc);
+ GNUNET_NO,
+ GNUNET_TIME_UNIT_FOREVER_REL, &send_set_quota, sqc);
}