| 299 | } |
| 300 | |
| 301 | void 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 | |
| 309 | void UDPSocket::disconnect() throw(SocketException) { |
| 310 | sockaddr_in nullAddr; |
nothing calls this directly
no outgoing calls
no test coverage detected