GNUnet  0.11.x
Data Structures | Functions
transport_api_offer_hello.c File Reference

library to offer HELLOs to transport service More...

#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_hello_lib.h"
#include "gnunet_protocols.h"
#include "gnunet_transport_service.h"
Include dependency graph for transport_api_offer_hello.c:

Go to the source code of this file.

Data Structures

struct  GNUNET_TRANSPORT_OfferHelloHandle
 Entry in linked list for all offer-HELLO requests. More...
 

Functions

static void finished_hello (void *cls)
 Done sending HELLO message to the service, notify application. More...
 
struct GNUNET_TRANSPORT_OfferHelloHandleGNUNET_TRANSPORT_offer_hello (const struct GNUNET_CONFIGURATION_Handle *cfg, const struct GNUNET_MessageHeader *hello, GNUNET_SCHEDULER_TaskCallback cont, void *cont_cls)
 Offer the transport service the HELLO of another peer. More...
 
void GNUNET_TRANSPORT_offer_hello_cancel (struct GNUNET_TRANSPORT_OfferHelloHandle *ohh)
 Cancel the request to transport to offer the HELLO message. More...
 

Detailed Description

library to offer HELLOs to transport service

Author
Christian Grothoff

Definition in file transport_api_offer_hello.c.

Function Documentation

◆ finished_hello()

static void finished_hello ( void *  cls)
static

Done sending HELLO message to the service, notify application.

Parameters
clsthe handle for the operation

Definition at line 61 of file transport_api_offer_hello.c.

References GNUNET_TRANSPORT_OfferHelloHandle::cls, GNUNET_TRANSPORT_OfferHelloHandle::cont, and GNUNET_TRANSPORT_offer_hello_cancel().

Referenced by GNUNET_TRANSPORT_offer_hello().

62 {
64 
65  if (NULL != ohh->cont)
66  ohh->cont (ohh->cls);
68 }
Entry in linked list for all offer-HELLO requests.
void GNUNET_TRANSPORT_offer_hello_cancel(struct GNUNET_TRANSPORT_OfferHelloHandle *ohh)
Cancel the request to transport to offer the HELLO message.
GNUNET_SCHEDULER_TaskCallback cont
Function to call once we are done.
Here is the call graph for this function:
Here is the caller graph for this function: