MCPcopy Index your code
hub / github.com/git/git / socksetup

Function socksetup

daemon.c:1108–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1106#endif
1107
1108static void socksetup(struct string_list *listen_addr, int listen_port, struct socketlist *socklist)
1109{
1110 if (!listen_addr->nr)
1111 setup_named_sock(NULL, listen_port, socklist);
1112 else {
1113 int socknum;
1114 for (size_t i = 0; i < listen_addr->nr; i++) {
1115 socknum = setup_named_sock(listen_addr->items[i].string,
1116 listen_port, socklist);
1117
1118 if (socknum == 0)
1119 logerror("unable to allocate any listen sockets for host %s on port %u",
1120 listen_addr->items[i].string, listen_port);
1121 }
1122 }
1123}
1124
1125static int service_loop(struct socketlist *socklist)
1126{

Callers 1

serveFunction · 0.85

Calls 2

setup_named_sockFunction · 0.85
logerrorFunction · 0.85

Tested by

no test coverage detected