#include <AbstractSocket.h>
|
enum | SocketProtocol { ProtocolTcp,
ProtocolUdp,
ProtocolUnixDomain,
ProtocolUnixAbstract
} |
|
enum | FDType { eFDTypeFile,
eFDTypeSocket
} |
|
typedef int | WaitableHandle |
|
static llvm::Error | Initialize () |
|
static void | Terminate () |
|
static std::unique_ptr< Socket > | Create (const SocketProtocol protocol, bool child_processes_inherit, Status &error) |
|
static llvm::Expected< std::unique_ptr< TCPSocket > > | TcpListen (llvm::StringRef host_and_port, bool child_processes_inherit, int backlog=5) |
|
static llvm::Expected< std::unique_ptr< Socket > > | TcpConnect (llvm::StringRef host_and_port, bool child_processes_inherit) |
|
static llvm::Expected< std::unique_ptr< UDPSocket > > | UdpConnect (llvm::StringRef host_and_port, bool child_processes_inherit) |
|
static llvm::Expected< HostAndPort > | DecodeHostAndPort (llvm::StringRef host_and_port) |
|
static const NativeSocket | kInvalidSocketValue = -1 |
|
static const WaitableHandle | kInvalidHandleValue = -1 |
|
static void | SetLastError (Status &error) |
|
static NativeSocket | CreateSocket (const int domain, const int type, const int protocol, bool child_processes_inherit, Status &error) |
|
static NativeSocket | AcceptSocket (NativeSocket sockfd, struct sockaddr *addr, socklen_t *addrlen, bool child_processes_inherit, Status &error) |
|
SocketProtocol | m_protocol |
|
NativeSocket | m_socket |
|
bool | m_child_processes_inherit |
|
bool | m_should_close_fd |
|
FDType | m_fd_type |
|
Definition at line 15 of file AbstractSocket.h.
◆ AbstractSocket()
AbstractSocket::AbstractSocket |
( |
bool |
child_processes_inherit | ) |
|
◆ DeleteSocketFile()
void AbstractSocket::DeleteSocketFile |
( |
llvm::StringRef |
name | ) |
|
|
overrideprotectedvirtual |
◆ GetNameOffset()
size_t AbstractSocket::GetNameOffset |
( |
| ) |
const |
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files: