diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-11 08:56:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-11 08:56:00 +0000 |
commit | 8afe6f260b19f148398784a2a918006b91bb4096 (patch) | |
tree | 6cd8160e8e0a183d4071d75abcbbde90b4d532f1 /src/core/gnunet-service-core_sessions.h | |
parent | 1f0797c47af2a197b05ac640ce17adc86982d3c0 (diff) | |
download | gnunet-8afe6f260b19f148398784a2a918006b91bb4096.tar.gz gnunet-8afe6f260b19f148398784a2a918006b91bb4096.zip |
process inbound type map messages:
Diffstat (limited to 'src/core/gnunet-service-core_sessions.h')
-rw-r--r-- | src/core/gnunet-service-core_sessions.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core_sessions.h b/src/core/gnunet-service-core_sessions.h index a795c417c..b70bd59fd 100644 --- a/src/core/gnunet-service-core_sessions.h +++ b/src/core/gnunet-service-core_sessions.h | |||
@@ -116,6 +116,30 @@ GSC_SESSIONS_broadcast (const struct GNUNET_MessageHeader *msg); | |||
116 | void | 116 | void |
117 | GSC_SESSIONS_notify_client_about_sessions (struct GSC_Client *client); | 117 | GSC_SESSIONS_notify_client_about_sessions (struct GSC_Client *client); |
118 | 118 | ||
119 | /** | ||
120 | * We've received a typemap message from a peer, update ours. | ||
121 | * Notifies clients about the session. | ||
122 | * | ||
123 | * @param peer peer this is about | ||
124 | * @param msg typemap update message | ||
125 | */ | ||
126 | void | ||
127 | GSC_SESSIONS_set_typemap (const struct GNUNET_PeerIdentity *peer, | ||
128 | const struct GNUNET_MessageHeader *msg); | ||
129 | |||
130 | |||
131 | /** | ||
132 | * The given peer send a message of the specified type. Make sure the | ||
133 | * respective bit is set in its type-map and that clients are notified | ||
134 | * about the session. | ||
135 | * | ||
136 | * @param peer peer this is about | ||
137 | * @param type type of the message | ||
138 | */ | ||
139 | void | ||
140 | GSC_SESSIONS_add_to_typemap (const struct GNUNET_PeerIdentity *peer, | ||
141 | uint16_t type); | ||
142 | |||
119 | 143 | ||
120 | /** | 144 | /** |
121 | * Handle CORE_ITERATE_PEERS request. For this request type, the client | 145 | * Handle CORE_ITERATE_PEERS request. For this request type, the client |