|
blocxx
|
Functions | |
| String | inetAddrToString (UInt64 addr) |
| int | waitForIO (SocketHandle_t fd, int timeOutSecs, SocketFlags::EWaitDirectionFlag forInput) BLOCXX_DEPRECATED |
| Wait for input or output on a socket. More... | |
| int | waitForIO (SocketHandle_t fd, const Timeout &timeout, SocketFlags::EWaitDirectionFlag forInput) |
| Wait for input or output on a socket. More... | |
| String | getFullyQualifiedHostName () |
| Get the fully qualified host name. More... | |
| BLOCXX_COMMON_API String BLOCXX_NAMESPACE::SocketUtils::getFullyQualifiedHostName | ( | ) |
Get the fully qualified host name.
This function can be expensive performance-wise. It may query multiple DNS servers. If the network is not working correctly, it will fail and throw an exception.
| SocketException | on failure. |
Definition at line 317 of file SocketUtils.cpp.
| BLOCXX_COMMON_API String BLOCXX_NAMESPACE::SocketUtils::inetAddrToString | ( | UInt64 | addr | ) |
Definition at line 150 of file SocketUtils.cpp.
| int BLOCXX_NAMESPACE::SocketUtils::waitForIO | ( | SocketHandle_t | fd, |
| const Timeout & | timeout, | ||
| SocketFlags::EWaitDirectionFlag | forInput | ||
| ) |
Wait for input or output on a socket.
| fd | the handle of the socket to wait on. |
| timeOutSecs | the number of seconds to wait. |
| forInput | true if we are waiting for input. |
Definition at line 268 of file SocketUtils.cpp.
| int BLOCXX_NAMESPACE::SocketUtils::waitForIO | ( | SocketHandle_t | fd, |
| int | timeOutSecs, | ||
| SocketFlags::EWaitDirectionFlag | forInput | ||
| ) |
Wait for input or output on a socket.
| fd | the handle of the socket to wait on. |
| timeOutSecs | the number of seconds to wait. |
| forInput | true if we are waiting for input. |
Definition at line 261 of file SocketUtils.cpp.
Referenced by BLOCXX_NAMESPACE::ServerSocketImpl::accept(), and BLOCXX_NAMESPACE::PosixUnnamedPipe::closeInputHandle().
1.8.18