diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-06 19:27:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-06 19:27:35 +0000 |
commit | 0babf19b445e521fdb78f0e1a67d5548e28405b9 (patch) | |
tree | d6713ae7b6e46feeae3af5eb2625e68a99771c46 /src/core/gnunet-service-core_sessions.h | |
parent | d7591587eb28a40e44a3065c30ec1b60a9bcba68 (diff) | |
download | gnunet-0babf19b445e521fdb78f0e1a67d5548e28405b9.tar.gz gnunet-0babf19b445e521fdb78f0e1a67d5548e28405b9.zip |
drafting typemap API
Diffstat (limited to 'src/core/gnunet-service-core_sessions.h')
-rw-r--r-- | src/core/gnunet-service-core_sessions.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core_sessions.h b/src/core/gnunet-service-core_sessions.h index 1898aa36a..fc5944cda 100644 --- a/src/core/gnunet-service-core_sessions.h +++ b/src/core/gnunet-service-core_sessions.h | |||
@@ -87,6 +87,15 @@ GSC_SESSIONS_transmit (struct GSC_ClientActiveRequest *car, | |||
87 | 87 | ||
88 | 88 | ||
89 | /** | 89 | /** |
90 | * Broadcast a message to all neighbours. | ||
91 | * | ||
92 | * @param msg message to transmit | ||
93 | */ | ||
94 | void | ||
95 | GSC_SESSIONS_broadcast (const struct GNUNET_MessageHeader *msg); | ||
96 | |||
97 | |||
98 | /** | ||
90 | * We have a new client, notify it about all current sessions. | 99 | * We have a new client, notify it about all current sessions. |
91 | * | 100 | * |
92 | * @param client the new client | 101 | * @param client the new client |
@@ -96,6 +105,48 @@ GSC_SESSIONS_notify_client_about_sessions (struct GSC_Client *client); | |||
96 | 105 | ||
97 | 106 | ||
98 | /** | 107 | /** |
108 | * Handle CORE_ITERATE_PEERS request. For this request type, the client | ||
109 | * does not have to have transmitted an INIT request. All current peers | ||
110 | * are returned, regardless of which message types they accept. | ||
111 | * | ||
112 | * @param cls unused | ||
113 | * @param client client sending the iteration request | ||
114 | * @param message iteration request message | ||
115 | */ | ||
116 | void | ||
117 | GSC_SESSIONS_handle_client_iterate_peers (void *cls, struct GNUNET_SERVER_Client *client, | ||
118 | const struct GNUNET_MessageHeader *message); | ||
119 | |||
120 | |||
121 | /** | ||
122 | * Handle CORE_PEER_CONNECTED request. Notify client about connection | ||
123 | * to the given neighbour. For this request type, the client does not | ||
124 | * have to have transmitted an INIT request. All current peers are | ||
125 | * returned, regardless of which message types they accept. | ||
126 | * | ||
127 | * @param cls unused | ||
128 | * @param client client sending the iteration request | ||
129 | * @param message iteration request message | ||
130 | */ | ||
131 | void | ||
132 | GSC_SESSIONS_handle_client_have_peer (void *cls, struct GNUNET_SERVER_Client *client, | ||
133 | const struct GNUNET_MessageHeader *message); | ||
134 | |||
135 | |||
136 | /** | ||
137 | * Handle REQUEST_INFO request. For this request type, the client must have | ||
138 | * transmitted an INIT first. | ||
139 | * | ||
140 | * @param cls unused | ||
141 | * @param client client sending the request | ||
142 | * @param message iteration request message | ||
143 | */ | ||
144 | void | ||
145 | GSC_SESSIONS_handle_client_request_info (void *cls, struct GNUNET_SERVER_Client *client, | ||
146 | const struct GNUNET_MessageHeader *message); | ||
147 | |||
148 | |||
149 | /** | ||
99 | * Initialize sessions subsystem. | 150 | * Initialize sessions subsystem. |
100 | */ | 151 | */ |
101 | void | 152 | void |