/// Set this socket to be blocking (true) or nonblocking (false). void Socket::Connection::setBlocking(bool blocking){ if (sock >= 0){ setFDBlocking(sock, blocking); } if (pipes[0] >= 0){ setFDBlocking(pipes[0], blocking); } if (pipes[1] >= 0){ setFDBlocking(pipes[1], blocking); } }
/// Set this socket to be blocking (true) or nonblocking (false). void Socket::Server::setBlocking(bool blocking){ if (sock >= 0){ setFDBlocking(sock, blocking); } }
/// Sets the socket to be blocking if the parameters is true. /// Sets the socket to be non-blocking otherwise. void Socket::UDPConnection::setBlocking(bool blocking) { if (sock >= 0) { setFDBlocking(sock, blocking); } }