diff options
| author | 2023-01-17 04:06:19 +0000 | |
|---|---|---|
| committer | 2023-01-17 04:45:26 +0000 | |
| commit | c631b784ba2079dbc73f15c9c6a8f42d59ac9577 (patch) | |
| tree | 9a3872a88ca19894a5e3bd81eff16b30ba056022 /src/socketengine.cpp | |
| parent | Add a helper method for determining if a sockaddrs is an IP endpoint. (diff) | |
Replace SocketEngine::SetReuse with SocketEngine::SetOption.
Diffstat (limited to 'src/socketengine.cpp')
| -rw-r--r-- | src/socketengine.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 5ed946529..9a42e856d 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -217,12 +217,6 @@ int SocketEngine::NonBlocking(int fd) #endif } -void SocketEngine::SetReuse(int fd) -{ - int on = 1; - setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast<char*>(&on), sizeof(on)); -} - ssize_t SocketEngine::RecvFrom(EventHandler* eh, void* buf, size_t len, int flags, sockaddr* from, socklen_t* fromlen) { ssize_t nbRecvd = recvfrom(eh->GetFd(), static_cast<char*>(buf), len, flags, from, fromlen); |
