projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- add separate encryption enabled mesh to avoid breakage during developement
[oweals/gnunet.git]
/
src
/
mesh
/
gnunet-service-mesh_local.h
diff --git
a/src/mesh/gnunet-service-mesh_local.h
b/src/mesh/gnunet-service-mesh_local.h
index 4befb24ac7ceaa6d954d7d94264bb1dcb97bba09..6647057b280f165972baa47683834f7d22b9cab0 100644
(file)
--- a/
src/mesh/gnunet-service-mesh_local.h
+++ b/
src/mesh/gnunet-service-mesh_local.h
@@
-40,13
+40,13
@@
extern "C"
#include "platform.h"
#include "gnunet_util_lib.h"
#include "platform.h"
#include "gnunet_util_lib.h"
-#include "gnunet-service-mesh_channel.h"
-
/**
* Struct containing information about a client of the service
*/
struct MeshClient;
/**
* Struct containing information about a client of the service
*/
struct MeshClient;
+#include "gnunet-service-mesh_channel.h"
+
/******************************************************************************/
/******************************** API ***********************************/
/******************************************************************************/
/******************************************************************************/
/******************************** API ***********************************/
/******************************************************************************/
@@
-141,21
+141,23
@@
GML_client_get_by_port (uint32_t port);
*
* @param c Client whose tunnel to delete.
* @param ch Channel which should be deleted.
*
* @param c Client whose tunnel to delete.
* @param ch Channel which should be deleted.
+ * @param id Channel ID.
*/
void
*/
void
-GML_client_delete_channel (struct MeshClient *c, struct MeshChannel *ch);
+GML_client_delete_channel (struct MeshClient *c,
+ struct MeshChannel *ch,
+ MESH_ChannelNumber id);
/**
* Build a local ACK message and send it to a local client, if needed.
*
* If the client was already allowed to send data, do nothing.
*
/**
* Build a local ACK message and send it to a local client, if needed.
*
* If the client was already allowed to send data, do nothing.
*
- * @param ch Channel on which to send the ACK.
* @param c Client to whom send the ACK.
* @param c Client to whom send the ACK.
- * @param
fwd Set to GNUNET_YES for FWD ACK (dest->root)
+ * @param
id Channel ID to use
*/
void
*/
void
-GML_send_ack (struct MeshC
hannel *ch, int fw
d);
+GML_send_ack (struct MeshC
lient *c, MESH_ChannelNumber i
d);
/**
* Notify the appropriate client that a new incoming channel was created.
/**
* Notify the appropriate client that a new incoming channel was created.
@@
-165,7
+167,7
@@
GML_send_ack (struct MeshChannel *ch, int fwd);
void
GML_send_channel_create (struct MeshClient *c,
uint32_t id, uint32_t port, uint32_t opt,
void
GML_send_channel_create (struct MeshClient *c,
uint32_t id, uint32_t port, uint32_t opt,
- struct GNUNET_PeerIdentity *peer);
+
const
struct GNUNET_PeerIdentity *peer);
/**
* Notify a client that a channel is no longer valid.
/**
* Notify a client that a channel is no longer valid.
@@
-177,17
+179,16
@@
void
GML_send_channel_destroy (struct MeshClient *c, uint32_t id);
/**
GML_send_channel_destroy (struct MeshClient *c, uint32_t id);
/**
- * Modify the mesh message
T
ID from global to local and send to client.
+ * Modify the mesh message ID from global to local and send to client.
*
*
- * @param ch Channel on which to send the message.
- * @param msg Message to modify and send.
* @param c Client to send to.
* @param c Client to send to.
- * @param tid Tunnel ID to use (c can be both owner and client).
+ * @param msg Message to modify and send.
+ * @param id Channel ID to use (c can be both owner and client).
*/
void
*/
void
-GML_send_data (struct MeshC
hannel *ch
,
+GML_send_data (struct MeshC
lient *c
,
const struct GNUNET_MESH_Data *msg,
const struct GNUNET_MESH_Data *msg,
-
struct MeshClient *c,
MESH_ChannelNumber id);
+ MESH_ChannelNumber id);
/**
* Get the static string to represent a client.
/**
* Get the static string to represent a client.