MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / sockaddr

Class sockaddr

bsgsd.cpp:1326–1326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1324 address.sin_port = htons(PORT);
1325 // Binding socket to address
1326 if (bind(server_fd, (struct sockaddr *)&address, sizeof(address)) < 0) {
1327 perror("bind failed");
1328 exit(EXIT_FAILURE);
1329 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected