| 61 | |
| 62 | |
| 63 | void setReusePort(bool flag) { |
| 64 | #ifdef SO_REUSEPORT |
| 65 | Exception ex; // ignore error, since not all implementations support SO_REUSEPORT, even if the macro is defined |
| 66 | setOption(ex,SOL_SOCKET, SO_REUSEPORT, flag ? 1 : 0); |
| 67 | #endif |
| 68 | } |
| 69 | bool getReusePort() const { |
| 70 | #ifdef SO_REUSEPORT |
| 71 | Exception ex; |
nothing calls this directly
no outgoing calls
no test coverage detected