diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-05-05 22:21:31 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-05-05 22:21:31 +0000 |
commit | 76dcc3351564146f788e8a354cb3c42025db21cc (patch) | |
tree | ce4c838359e568ae511a843b7a9d9dae77564f08 /src/mesh/mesh.h | |
parent | 27ef03e590f6a5729eb6cf7a93829876b562cbcd (diff) | |
download | gnunet-76dcc3351564146f788e8a354cb3c42025db21cc.tar.gz gnunet-76dcc3351564146f788e8a354cb3c42025db21cc.zip |
WiP
Diffstat (limited to 'src/mesh/mesh.h')
-rw-r--r-- | src/mesh/mesh.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/mesh/mesh.h b/src/mesh/mesh.h index c40f08325..dc90f781a 100644 --- a/src/mesh/mesh.h +++ b/src/mesh/mesh.h | |||
@@ -39,7 +39,7 @@ | |||
39 | * | 39 | * |
40 | * API CALL (GNUNET_MESH_*) MESSAGE USED | 40 | * API CALL (GNUNET_MESH_*) MESSAGE USED |
41 | * ------------------------ ------------ | 41 | * ------------------------ ------------ |
42 | * connect None (Header + [types]) | 42 | * connect GNUNET_MESH_ClientConnect |
43 | * disconnect None (network level disconnect) | 43 | * disconnect None (network level disconnect) |
44 | * | 44 | * |
45 | * tunnel_create GNUNET_MESH_TunnelMessage | 45 | * tunnel_create GNUNET_MESH_TunnelMessage |
@@ -65,6 +65,23 @@ | |||
65 | */ | 65 | */ |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * Message for a client to register to the service | ||
69 | */ | ||
70 | struct GNUNET_MESH_ClientConnect { | ||
71 | /** | ||
72 | * Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT | ||
73 | * | ||
74 | * Size: sizeof(struct GNUNET_MESH_ClientConnect) + | ||
75 | * sizeof(uint16_t) * types + | ||
76 | * sizeof(MESH_ApplicationType) * applications | ||
77 | */ | ||
78 | struct GNUNET_MessageHeader header; | ||
79 | uint16_t types; | ||
80 | uint16_t applications; | ||
81 | }; | ||
82 | |||
83 | |||
84 | /** | ||
68 | * Type for tunnel numbering. | 85 | * Type for tunnel numbering. |
69 | * - Local tunnel numbers are >= 0x80000000 | 86 | * - Local tunnel numbers are >= 0x80000000 |
70 | * - Global tunnel numbers are < 0x80000000 | 87 | * - Global tunnel numbers are < 0x80000000 |