MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / valid_socket

Function valid_socket

libminifi/src/io/ClientSocket.cpp:152–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152bool valid_socket(const SocketDescriptor fd) noexcept {
153#ifdef WIN32
154 return fd != INVALID_SOCKET && fd >= 0;
155#else
156 return fd >= 0;
157#endif /* WIN32 */
158}
159
160Socket::Socket(const std::shared_ptr<SocketContext>& /*context*/, std::string hostname, const uint16_t port, const uint16_t listeners)
161 : requested_hostname_(std::move(hostname)),

Callers 3

closeMethod · 0.85
createConnectionMethod · 0.85
select_descriptorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected