Type Definition gnunet_sys::GNUNET_TRANSPORT_NotifyExcessBandwidth[][src]

type GNUNET_TRANSPORT_NotifyExcessBandwidth = Option<unsafe extern "C" fn(cls: *mut c_void, neighbour: *const GNUNET_PeerIdentity, handlers_cls: *mut c_void)>;

Function called if we have “excess” bandwidth to a peer. The notification will happen the first time we have excess bandwidth, and then only again after the client has performed some transmission to the peer.

Excess bandwidth is defined as being allowed (by ATS) to send more data, and us reaching the limit of the capacity build-up (which, if we go past it, means we don’t use available bandwidth). See also the “max carry” in struct GNUNET_BANDWIDTH_Tracker.

@param cls the closure @param neighbour peer that we have excess bandwidth to @param handlers_cls closure of the handlers, was returned from the connect notification callback