MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / receive

Function receive

modules/db_http/http_dbase.c:286–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284
285
286size_t receive(void *buffer, size_t size, size_t nmemb, void *userp)
287{
288 var_str * buff;
289 str temp;
290
291 buff = (var_str*) userp;
292
293 temp.s = (char*)buffer;
294 temp.len = size * nmemb;
295
296 if (append_str(buff,temp))
297 LM_ERR("cannot append buffer!\n");
298
299
300 return temp.len;
301
302
303}
304
305
306

Callers

nothing calls this directly

Calls 1

append_strFunction · 0.85

Tested by

no test coverage detected