Exemple #1
0
/// 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);
  }
}
Exemple #2
0
/// Set this socket to be blocking (true) or nonblocking (false).
void Socket::Server::setBlocking(bool blocking){
  if (sock >= 0){
    setFDBlocking(sock, blocking);
  }
}
Exemple #3
0
/// 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);
  }
}