|
LLVM 24.0.0git
|
#include "llvm/Support/raw_socket_stream.h"#include "llvm/Config/config.h"#include "llvm/Support/Error.h"#include "llvm/Support/FileSystem.h"#include <atomic>#include <fcntl.h>#include <functional>#include <poll.h>#include <sys/socket.h>#include <sys/un.h>#include <unistd.h>Go to the source code of this file.
Macros | |
| #define | INVALID_SOCKET -1 |
Typedefs | |
| using | NativeSocket = int |
Functions | |
| static std::error_code | getLastSocketErrorCode () |
| static int | closeSocket (NativeSocket Socket) |
| static Expected< sockaddr_un > | setSocketAddr (StringRef SocketPath) |
| static Expected< int > | getSocketFD (StringRef SocketPath) |
| static std::error_code | manageTimeout (const std::chrono::milliseconds &Timeout, const std::function< int()> &getActiveFD, const std::optional< int > &CancelFD=std::nullopt) |
| #define INVALID_SOCKET -1 |
Definition at line 68 of file raw_socket_stream.cpp.
Referenced by llvm::ListeningSocket::createUnix(), and getSocketFD().
| using NativeSocket = int |
Definition at line 67 of file raw_socket_stream.cpp.
|
static |
Definition at line 71 of file raw_socket_stream.cpp.
Referenced by llvm::ListeningSocket::createUnix(), and getSocketFD().
|
static |
Definition at line 56 of file raw_socket_stream.cpp.
References llvm::errnoAsErrorCode().
Referenced by llvm::ListeningSocket::accept(), llvm::ListeningSocket::createUnix(), getSocketFD(), and manageTimeout().
Definition at line 93 of file raw_socket_stream.cpp.
References closeSocket(), getLastSocketErrorCode(), INVALID_SOCKET, llvm::make_error(), setSocketAddr(), and llvm::Expected< T >::takeError().
Referenced by llvm::raw_socket_stream::createConnectedUnix(), and llvm::ListeningSocket::createUnix().
|
static |
Definition at line 234 of file raw_socket_stream.cpp.
References getLastSocketErrorCode(), and llvm::Timeout.
Referenced by llvm::ListeningSocket::accept(), and llvm::raw_socket_stream::read().
Definition at line 79 of file raw_socket_stream.cpp.
References llvm::make_error(), llvm::StringRef::size(), and llvm::StringRef::str().
Referenced by llvm::ListeningSocket::createUnix(), and getSocketFD().