blob: b123650144b8d3867160f26ef5e644c144dd26d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace vespalib::socketutils {
// Set blocking mode on file descriptor
void set_blocking(int fd, bool blocking);
// Create a pipe and set it nonblocking
void nonblocking_pipe(int pipefd[2]);
// Create a socket pair and set it nonblocking
void nonblocking_socketpair(int domain, int type, int protocol, int socketfd[2]);
}
|