diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-14 08:03:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-14 08:03:02 +0000 |
commit | 70f9bcf894b28799df078330d204860e7ea7bae8 (patch) | |
tree | 1ddea2775a875e840ab93e637b6f05b8678fc057 /src/ats/gnunet-service-ats_addresses.c | |
parent | 1bab64147e7b113051dcd41ae18fa0e9537b7fd9 (diff) | |
download | gnunet-70f9bcf894b28799df078330d204860e7ea7bae8.tar.gz gnunet-70f9bcf894b28799df078330d204860e7ea7bae8.zip |
more ATS implementation: message parsing and generation:
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.c')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index 4f9f877a5..48a1b305d 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -22,6 +22,7 @@ | |||
22 | * @file ats/gnunet-service-ats_addresses.c | 22 | * @file ats/gnunet-service-ats_addresses.c |
23 | * @brief ats service address management | 23 | * @brief ats service address management |
24 | * @author Matthias Wachs | 24 | * @author Matthias Wachs |
25 | * @author Christian Grothoff | ||
25 | */ | 26 | */ |
26 | #include "platform.h" | 27 | #include "platform.h" |
27 | #include "gnunet-service-ats_addresses.h" | 28 | #include "gnunet-service-ats_addresses.h" |
@@ -82,10 +83,10 @@ free_address_it (void *cls, | |||
82 | 83 | ||
83 | 84 | ||
84 | void | 85 | void |
85 | GAS_address_update (struct GNUNET_SERVER_Client *client, | 86 | GAS_address_update (const struct GNUNET_PeerIdentity *peer, |
86 | const struct GNUNET_PeerIdentity *peer, | ||
87 | const char *plugin_name, | 87 | const char *plugin_name, |
88 | const void *plugin_addr, size_t plugin_addr_len, | 88 | const void *plugin_addr, size_t plugin_addr_len, |
89 | struct GNUNET_SERVER_Client *session_client, | ||
89 | uint32_t session_id, | 90 | uint32_t session_id, |
90 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, | 91 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, |
91 | uint32_t atsi_count) | 92 | uint32_t atsi_count) |
@@ -113,8 +114,11 @@ GAS_address_update (struct GNUNET_SERVER_Client *client, | |||
113 | 114 | ||
114 | 115 | ||
115 | void | 116 | void |
116 | GAS_address_destroyed (struct GNUNET_SERVER_Client *client, | 117 | GAS_address_destroyed (const struct GNUNET_PeerIdentity *peer, |
117 | ...) | 118 | const char *plugin_name, |
119 | const void *plugin_addr, size_t plugin_addr_len, | ||
120 | struct GNUNET_SERVER_Client *session_client, | ||
121 | uint32_t session_id) | ||
118 | { | 122 | { |
119 | #if 0 | 123 | #if 0 |
120 | // struct AddressDestroyedMessage * msg = (struct AddressDestroyedMessage *) message; | 124 | // struct AddressDestroyedMessage * msg = (struct AddressDestroyedMessage *) message; |
@@ -127,6 +131,12 @@ GAS_address_destroyed (struct GNUNET_SERVER_Client *client, | |||
127 | } | 131 | } |
128 | 132 | ||
129 | 133 | ||
134 | void | ||
135 | GAS_addresses_request_address (const struct GNUNET_PeerIdentity *peer) | ||
136 | { | ||
137 | } | ||
138 | |||
139 | |||
130 | /** | 140 | /** |
131 | */ | 141 | */ |
132 | void | 142 | void |