MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / process_decom_hostname

Function process_decom_hostname

net/net_evbuffer.c:1445–1460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1443}
1444
1445static int process_decom_hostname(struct event_info *e)
1446{
1447 if (e->state == 0) {
1448 ++e->state;
1449 uint32_t n;
1450 memcpy(&n, e->rd_buf, sizeof(n));
1451 e->need = htonl(n);
1452 return 0;
1453 }
1454 char host[e->need + 1];
1455 memcpy(host, e->rd_buf, e->need);
1456 host[e->need] = 0;
1457 decom(host);
1458 message_done(e);
1459 return 0;
1460}
1461
1462static int process_hdr(struct event_info *e)
1463{

Callers 1

process_payloadFunction · 0.85

Calls 2

decomFunction · 0.85
message_doneFunction · 0.85

Tested by

no test coverage detected