MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / setSocketReuse

Method setSocketReuse

OpenHD/ohd_common/src/openhd_udp.cpp:230–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void openhd::setSocketReuse(int sockfd) {
231 int enable = 1;
232 if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(int)) < 0) {
233 get_console()->warn("Cannot set socket reuse");
234 }
235}

Callers

nothing calls this directly

Calls 1

get_consoleFunction · 0.70

Tested by

no test coverage detected