MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / IOCTL

Method IOCTL

MonaBase/sources/Socket.cpp:623–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621bool Socket::getReusePort() const { return _pImpl->getReusePort(); }
622
623int Socket::IOCTL(Exception& ex,NET_SOCKET sockfd,NET_IOCTLREQUEST request,int value) {
624 ASSERT_RETURN(sockfd!=NET_INVALID_SOCKET, value)
625#if defined(_WIN32)
626 int rc = ioctlsocket(sockfd, request, reinterpret_cast<u_long*>(&value));
627#else
628 int rc = ::ioctl(sockfd, request, &value);
629#endif
630 if (rc != 0)
631 Net::SetException(ex, Net::LastError()," (request=",request,")");
632 return value;
633}
634
635} // namespace Mona

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected