MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / setBroadcast

Method setBroadcast

tools/streamer_recorder/PracticalSocket.cpp:301–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void UDPSocket::setBroadcast() {
302 // If this fails, we'll hear about it when we try to send. This will allow
303 // system that cannot broadcast to continue if they don't plan to broadcast
304 int broadcastPermission = 1;
305 setsockopt(sockDesc, SOL_SOCKET, SO_BROADCAST,
306 (raw_type *) &broadcastPermission, sizeof(broadcastPermission));
307}
308
309void UDPSocket::disconnect() throw(SocketException) {
310 sockaddr_in nullAddr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected