aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-04-10 11:22:35 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-04-10 11:22:35 +0000
commit02f9bfff7dac518b4ec881d3c99164777b061119 (patch)
treed5061e82b5e1beff8734b57204cd070afa9cf4bc /src/mesh
parent43939383f2324840b5f2ebecfed5e23cbf1e4aa1 (diff)
downloadgnunet-02f9bfff7dac518b4ec881d3c99164777b061119.tar.gz
gnunet-02f9bfff7dac518b4ec881d3c99164777b061119.zip
send hello to self
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_api.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 68b2e587d..fc92f9bb4 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -181,6 +181,17 @@ core_connect (void *cls,
181 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 181 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
182{ 182{
183 struct GNUNET_MESH_Handle *handle = cls; 183 struct GNUNET_MESH_Handle *handle = cls;
184
185 /* Send a hello to this peer */
186 GNUNET_CORE_notify_transmit_ready(handle->core,
187 GNUNET_NO,
188 42,
189 GNUNET_TIME_UNIT_SECONDS,
190 peer,
191 sizeof(struct GNUNET_MessageHeader) + handle->hello_message_size,
192 &send_hello_message,
193 cls);
194
184 /* Check for connect-to-self-message, which we ignore */ 195 /* Check for connect-to-self-message, which we ignore */
185 if (0 == 196 if (0 ==
186 memcmp (peer, &handle->myself, sizeof (struct GNUNET_PeerIdentity))) 197 memcmp (peer, &handle->myself, sizeof (struct GNUNET_PeerIdentity)))
@@ -220,15 +231,6 @@ core_connect (void *cls,
220 else 231 else
221 tunnel = tunnel->next; 232 tunnel = tunnel->next;
222 } 233 }
223 GNUNET_CORE_notify_transmit_ready(handle->core,
224 GNUNET_NO,
225 42,
226 GNUNET_TIME_UNIT_SECONDS,
227 peer,
228 sizeof(struct GNUNET_MessageHeader) + handle->hello_message_size,
229 &send_hello_message,
230 cls);
231
232} 234}
233 235
234/** 236/**