Lines Matching defs:reply
43 * table. Associated with each query is a reply (in the format of an
48 * slp_put_das_cached: adds a reply to the cache
86 const char *reply;
98 * Searches the cache for the reply to 'query'. Returns the reply if
104 char *reply = NULL;
123 /* copy out the reply */
124 if (!(reply = malloc((*ans)->reply_len))) {
129 (void) memcpy(reply, (*ans)->reply, (*ans)->reply_len);
141 return (reply);
145 * Adds 'reply' to the cache under the index 'query'. Both parameters
147 * 'len' is the length of 'reply' in bytes.
149 void slp_put_das_cached(const char *query, const char *reply,
160 /* create the cache entry for this reply */
172 if (!(ce->reply = malloc(len))) {
178 (void) memcpy((void *) (ce->reply), reply, len);
190 free((void *) ((*ce2)->reply));
210 free((void *) (ce->reply));