* complete reply is received.
*
* @param cls closure with the 'struct StreamHandle'
- * @param client identification of the client, NULL
+ * @param tunnel tunnel handle
+ * @param tunnel_ctx tunnel context
* @param message the actual message
* @return GNUNET_OK on success, GNUNET_SYSERR to stop further processing
*/
reply_cb (void *cls,
struct GNUNET_MESH_Tunnel *tunnel,
void **tunnel_ctx,
- const struct GNUNET_PeerIdentity *sender,
- const struct GNUNET_MessageHeader *message)
+ const struct GNUNET_MessageHeader *message)
{
struct StreamHandle *sh = *tunnel_ctx;
const struct StreamReplyMessage *srm;
* Do not call GNUNET_SERVER_mst_destroy in callback
*
* @param cls closure with the 'struct StreamClient'
- * @param client identification of the client, NULL
+ * @param tunnel tunnel handle
+ * @param tunnel_ctx tunnel context
* @param message the actual message
* @return GNUNET_OK on success, GNUNET_SYSERR to stop further processing
*/
request_cb (void *cls,
struct GNUNET_MESH_Tunnel *tunnel,
void **tunnel_ctx,
- const struct GNUNET_PeerIdentity *sender,
const struct GNUNET_MessageHeader *message)
{
struct StreamClient *sc = *tunnel_ctx;
* @param cls Closure (set from GNUNET_MESH_connect).
* @param tunnel Connection to the other end.
* @param tunnel_ctx Place to store local state associated with the tunnel.
- * @param sender Peer who sent the message.
* @param message The actual message.
*
* @return GNUNET_OK to keep the tunnel open,
typedef int (*GNUNET_MESH_MessageCallback) (void *cls,
struct GNUNET_MESH_Tunnel *tunnel,
void **tunnel_ctx,
- const struct GNUNET_PeerIdentity *sender,
const struct GNUNET_MessageHeader *message);
if (handler->type == type)
{
if (GNUNET_OK !=
- handler->callback (h->cls, t, &t->ctx, peer, payload))
+ handler->callback (h->cls, t, &t->ctx, payload))
{
LOG (GNUNET_ERROR_TYPE_DEBUG, "callback caused disconnection\n");
GNUNET_MESH_tunnel_destroy (t);