aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mesh_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-29 11:50:08 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-29 11:50:08 +0000
commit24260f6061bba1c694fe34defcf38b6c66cd6a8e (patch)
tree057f661d9c4af47aff97e3b4ca66ed774c6d96c3 /src/include/gnunet_mesh_service.h
parent9df3d510bfb933e77347d214f24a1471c5df880f (diff)
downloadgnunet-24260f6061bba1c694fe34defcf38b6c66cd6a8e.tar.gz
gnunet-24260f6061bba1c694fe34defcf38b6c66cd6a8e.zip
ideas
Diffstat (limited to 'src/include/gnunet_mesh_service.h')
-rw-r--r--src/include/gnunet_mesh_service.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h
index aefdd209a..0c90f2105 100644
--- a/src/include/gnunet_mesh_service.h
+++ b/src/include/gnunet_mesh_service.h
@@ -116,6 +116,12 @@ typedef void (GNUNET_MESH_TunnelEndHandler)(void *cls,
116 116
117 117
118/** 118/**
119 * Type for an application. Values defined in gnunet_applications.h
120 */
121typedef uint32_t GNUNET_MESH_ApplicationType;
122
123
124/**
119 * Connect to the mesh service. 125 * Connect to the mesh service.
120 * 126 *
121 * @param cfg configuration to use 127 * @param cfg configuration to use
@@ -132,8 +138,8 @@ struct GNUNET_MESH_Handle *
132GNUNET_MESH_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, 138GNUNET_MESH_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
133 void *cls, 139 void *cls,
134 GNUNET_MESH_TunnelEndHandler cleaner, 140 GNUNET_MESH_TunnelEndHandler cleaner,
135 const struct GNUNET_MESH_MessageHandler *handlers); 141 const struct GNUNET_MESH_MessageHandler *handlers,
136 142 const GNUNET_MESH_ServiceType *stypes);
137 143
138/** 144/**
139 * Get the peer on the other side of this tunnel if it is just one. Return NULL otherwise 145 * Get the peer on the other side of this tunnel if it is just one. Return NULL otherwise
@@ -268,7 +274,7 @@ GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel,
268 * 274 *
269 * @param h mesh handle 275 * @param h mesh handle
270 * @param timeout how long to try to establish a connection 276 * @param timeout how long to try to establish a connection
271 * @param message_type message type that must be supported by the peer (MESH should 277 * @param app_type application type that must be supported by the peer (MESH should
272 * discover peer in proximity handling this type) 278 * discover peer in proximity handling this type)
273 * @param connect_handler function to call on successful connect (or timeout); 279 * @param connect_handler function to call on successful connect (or timeout);
274 * will be called for EACH of the peers in the list and 280 * will be called for EACH of the peers in the list and
@@ -282,7 +288,7 @@ GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel,
282struct GNUNET_MESH_Tunnel * 288struct GNUNET_MESH_Tunnel *
283GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Handle *h, 289GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Handle *h,
284 struct GNUNET_TIME_Relative timeout, 290 struct GNUNET_TIME_Relative timeout,
285 uint16_t message_type, 291 GNUNET_MESH_ApplicationType app_type,
286 GNUNET_MESH_TunnelConnectHandler connect_handler, 292 GNUNET_MESH_TunnelConnectHandler connect_handler,
287 GNUNET_MESH_TunnelDisconnectHandler disconnect_handler, 293 GNUNET_MESH_TunnelDisconnectHandler disconnect_handler,
288 void *handler_cls); 294 void *handler_cls);