aboutsummaryrefslogtreecommitdiff
path: root/doc/documentation/tutorial-examples/003.c
blob: d158d7e756dbb1cabb4fb66f258abe8666af29dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
struct GNUNET_MQ_MessageHandlers handlers[] = {
    // ...
  GNUNET_MQ_handler_end ()
};
struct GNUNET_MQ_Handle *mq;

mq = GNUNET_CLIENT_connect (cfg,
                            "service-name",
                            handlers,
                            &error_cb,
                            NULL);