Lines Matching refs:Socket

44 const NativeSocket Socket::kInvalidSocketValue = INVALID_SOCKET;
48 const NativeSocket Socket::kInvalidSocketValue = -1;
104 Socket::Socket(NativeSocket socket, SocketProtocol protocol, bool should_close) in Socket() function in Socket
112 Socket::~Socket() in ~Socket()
117 Error Socket::TcpConnect(llvm::StringRef host_and_port, bool child_processes_inherit, Socket *&sock… in TcpConnect()
120 std::unique_ptr<Socket> final_socket; in TcpConnect()
144 final_socket.reset(new Socket(sock, ProtocolTcp, true)); in TcpConnect()
186 Error Socket::TcpListen( in TcpListen()
189 Socket *&socket, in TcpListen()
193 std::unique_ptr<Socket> listen_socket; in TcpListen()
207 listen_socket.reset(new Socket(listen_sock, ProtocolTcp, true)); in TcpListen()
260 Error Socket::BlockingAccept(llvm::StringRef host_and_port, bool child_processes_inherit, Socket *&… in BlockingAccept()
287 std::unique_ptr<Socket> accepted_socket; in BlockingAccept()
322 accepted_socket.reset(new Socket(sock, ProtocolTcp, true)); in BlockingAccept()
346 Error Socket::UdpConnect(llvm::StringRef host_and_port, bool child_processes_inherit, Socket *&send… in UdpConnect()
348 std::unique_ptr<Socket> final_send_socket; in UdpConnect()
349 std::unique_ptr<Socket> final_recv_socket; in UdpConnect()
374 final_recv_socket.reset(new Socket(final_recv_fd, ProtocolUdp, true)); in UdpConnect()
422 final_send_socket.reset(new Socket(final_send_fd, ProtocolUdp, true)); in UdpConnect()
444 Error Socket::UnixDomainConnect(llvm::StringRef name, bool child_processes_inherit, Socket *&socket) in UnixDomainConnect()
448 std::unique_ptr<Socket> final_socket; in UnixDomainConnect()
459 final_socket.reset(new Socket(fd, ProtocolUnixDomain, true)); in UnixDomainConnect()
481 Error Socket::UnixDomainAccept(llvm::StringRef name, bool child_processes_inherit, Socket *&socket) in UnixDomainAccept()
486 std::unique_ptr<Socket> listen_socket; in UnixDomainAccept()
487 std::unique_ptr<Socket> final_socket; in UnixDomainAccept()
498 listen_socket.reset(new Socket(listen_fd, ProtocolUnixDomain, true)); in UnixDomainAccept()
516 final_socket.reset(new Socket(socket_fd, ProtocolUnixDomain, true)); in UnixDomainAccept()
538 Socket::DecodeHostAndPort(llvm::StringRef host_and_port, in DecodeHostAndPort()
585 IOObject::WaitableHandle Socket::GetWaitableHandle() in GetWaitableHandle()
591 Error Socket::Read (void *buf, size_t &num_bytes) in Read()
623 Error Socket::Write (const void *buf, size_t &num_bytes) in Write()
665 Error Socket::PreDisconnect() in PreDisconnect()
671 Error Socket::Close() in Close()
697 int Socket::GetOption(int level, int option_name, int &option_value) in GetOption()
704 int Socket::SetOption(int level, int option_name, int option_value) in SetOption()
710 uint16_t Socket::GetLocalPortNumber(const NativeSocket& socket) in GetLocalPortNumber()
724 uint16_t Socket::GetLocalPortNumber() const in GetLocalPortNumber()
729 std::string Socket::GetLocalIPAddress () const in GetLocalIPAddress()
742 uint16_t Socket::GetRemotePortNumber () const in GetRemotePortNumber()
754 std::string Socket::GetRemoteIPAddress () const in GetRemoteIPAddress()