aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-03-09 03:04:06 +0000
committerBart Polot <bart@net.in.tum.de>2011-03-09 03:04:06 +0000
commitf7c0d631f7119d27e9ddcfc0064a3cd6610ba901 (patch)
tree1999235fdea77d572ef88116ea3370dc88585859 /src/include
parentb2e82d34bc2a189f37c1c90ac2c7c93b1bc00e92 (diff)
downloadgnunet-f7c0d631f7119d27e9ddcfc0064a3cd6610ba901.tar.gz
gnunet-f7c0d631f7119d27e9ddcfc0064a3cd6610ba901.zip
Added first data structures for the MESH service
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_mesh_service.h4
-rw-r--r--src/include/gnunet_protocols.h51
2 files changed, 53 insertions, 2 deletions
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h
index 1ff5e3bec..36dbafb86 100644
--- a/src/include/gnunet_mesh_service.h
+++ b/src/include/gnunet_mesh_service.h
@@ -114,7 +114,7 @@ typedef void (GNUNET_MESH_TunnelEndHandler)(void *cls,
114 114
115 115
116/** 116/**
117 * Connect to the mesh service. 117 * Connect to the mesh service.
118 * 118 *
119 * @param cfg configuration to use 119 * @param cfg configuration to use
120 * @param cls closure for the various callbacks that follow (including handlers in the handlers array) 120 * @param cls closure for the various callbacks that follow (including handlers in the handlers array)
@@ -190,7 +190,7 @@ struct GNUNET_MESH_PeerRequestHandle;
190 * 190 *
191 * @param h mesh handle 191 * @param h mesh handle
192 * @param timeout how long to try to establish a connection 192 * @param timeout how long to try to establish a connection
193 * @param num_peers length of the peers arrray 193 * @param num_peers length of the peers array
194 * @param peers list of candidates to connect to 194 * @param peers list of candidates to connect to
195 * @param connect_handler function to call on successful connect (or timeout) 195 * @param connect_handler function to call on successful connect (or timeout)
196 * @param disconnect_handler function to call on disconnect 196 * @param disconnect_handler function to call on disconnect
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 60369086d..29657ff08 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -743,6 +743,57 @@ extern "C"
743 743
744 744
745/** 745/**
746 * MESH message types (WiP)
747 */
748
749/**
750 * Request the creation of a path
751 */
752#define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE 256
753
754/**
755 * Request the modification of an existing path
756 */
757#define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE 257
758
759/**
760 * Request the addition to a new branch to a path
761 */
762#define GNUNET_MESSAGE_TYPE_MESH_PATH_ADD 258
763
764/**
765 * At some point, the route will spontaneously change
766 */
767#define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED 259
768
769/**
770 * Transport data in the mesh (origin->end)
771 */
772#define GNUNET_MESSAGE_TYPE_MESH_DATA_GO 260
773
774/**
775 * Transport data back in the mesh (end->origin)
776 * (not sure if this is the right way, should be some other solution)
777 */
778#define GNUNET_MESSAGE_TYPE_MESH_DATA_BACK 261
779
780/**
781 * We need flow control
782 */
783#define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 262
784
785/**
786 * 640kb should be enough for everybody
787 */
788#define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 288
789
790/**
791 * MESH message types END
792 */
793
794
795
796/**
746 * Message sent from client to join a chat room. 797 * Message sent from client to join a chat room.
747 */ 798 */
748#define GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST 300 799#define GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST 300