Lines Matching defs:Socket
1 //===-- Socket.cpp --------------------------------------------------------===//
9 #include "lldb/Host/Socket.h"
58 const NativeSocket Socket::kInvalidSocketValue = INVALID_SOCKET;
62 const NativeSocket Socket::kInvalidSocketValue = -1;
73 Socket::Socket(SocketProtocol protocol, bool should_close,
80 Socket::~Socket() { Close(); }
82 llvm::Error Socket::Initialize() {
100 void Socket::Terminate() {
106 std::unique_ptr<Socket> Socket::Create(const SocketProtocol protocol,
111 std::unique_ptr<Socket> socket_up;
147 llvm::Expected<std::unique_ptr<Socket>>
148 Socket::TcpConnect(llvm::StringRef host_and_port,
154 std::unique_ptr<Socket> connect_socket(
167 Socket::TcpListen(llvm::StringRef host_and_port, bool child_processes_inherit,
183 Socket::UdpConnect(llvm::StringRef host_and_port,
188 llvm::Expected<Socket::HostAndPort> Socket::DecodeHostAndPort(llvm::StringRef host_and_port) {
211 IOObject::WaitableHandle Socket::GetWaitableHandle() {
216 Status Socket::Read(void *buf, size_t &num_bytes) {
232 "%p Socket::Read() (socket = %" PRIu64
243 Status Socket::Write(const void *buf, size_t &num_bytes) {
260 "%p Socket::Write() (socket = %" PRIu64
271 Status Socket::Close() {
277 LLDB_LOGF(log, "%p Socket::Close (fd = %" PRIu64 ")",
294 int Socket::GetOption(int level, int option_name, int &option_value) {
302 int Socket::SetOption(int level, int option_name, int option_value) {
309 size_t Socket::Send(const void *buf, const size_t num_bytes) {
313 void Socket::SetLastError(Status &error) {
321 NativeSocket Socket::CreateSocket(const int domain, const int type,
337 NativeSocket Socket::AcceptSocket(NativeSocket sockfd, struct sockaddr *addr,
374 const Socket::HostAndPort &HP) {