diff options
Diffstat (limited to 'tools/android/forwarder2/socket.h')
-rw-r--r-- | tools/android/forwarder2/socket.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/android/forwarder2/socket.h b/tools/android/forwarder2/socket.h index 33d72fc..6047a1c 100644 --- a/tools/android/forwarder2/socket.h +++ b/tools/android/forwarder2/socket.h @@ -37,14 +37,13 @@ class Socket { void Close(); bool IsClosed() const { return socket_ < 0; } + int fd() const { return socket_; } + bool Accept(Socket* new_socket); // Returns the port allocated to this socket or zero on error. int GetPort(); - bool IsFdInSet(const fd_set& fds) const; - bool AddFdToSet(fd_set* fds) const; - // Just a wrapper around unix read() function. // Reads up to buffer_size, but may read less then buffer_size. // Returns the number of bytes read. @@ -89,8 +88,6 @@ class Socket { bool DidReceiveEvent() const; - static int GetHighestFileDescriptor(const Socket& s1, const Socket& s2); - static pid_t GetUnixDomainSocketProcessOwner(const std::string& path); private: |