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

Function process_hello

net/net.c:4211–4225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4209
4210
4211static int process_hello(netinfo_type *netinfo_ptr,
4212 host_node_type *host_node_ptr)
4213{
4214 int rc = process_hello_common(netinfo_ptr, host_node_ptr, 1);
4215 if (rc == 1) {
4216 logmsg(LOGMSG_ERROR, "rejected hello from %s\n", host_node_ptr->host);
4217 }
4218 if (rc == 0) {
4219 write_hello_reply(netinfo_ptr, host_node_ptr);
4220 } else if (rc != -1) {
4221 /* Only propogate IO errors backwards. */
4222 rc = 0;
4223 }
4224 return rc;
4225}
4226
4227
4228static int process_hello_reply(netinfo_type *netinfo_ptr,

Callers 1

reader_threadFunction · 0.85

Calls 3

process_hello_commonFunction · 0.85
write_hello_replyFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected