Chromium Code Reviews| Index: runtime/bin/sync_socket_macos.cc |
| diff --git a/runtime/bin/sync_socket_macos.cc b/runtime/bin/sync_socket_macos.cc |
| index 9b7e3bf89f7445f6bd70d66ce963475ce90459a8..e58a2b636ab9d797447aa18c7f564ed2e62005e8 100644 |
| --- a/runtime/bin/sync_socket_macos.cc |
| +++ b/runtime/bin/sync_socket_macos.cc |
| @@ -60,6 +60,35 @@ intptr_t SynchronousSocket::CreateConnect(const RawAddr& addr) { |
| } |
|
siva
2017/04/21 16:40:36
SynchronousSocket::Initialize() seems to be missin
zra
2017/04/22 06:29:28
Whoops. Added back.
|
| +intptr_t SynchronousSocket::Available(intptr_t fd) { |
| + return SocketBase::Available(fd); |
| +} |
| + |
| + |
| +intptr_t SynchronousSocket::GetPort(intptr_t fd) { |
| + return SocketBase::GetPort(fd); |
| +} |
| + |
| + |
| +SocketAddress* SynchronousSocket::GetRemotePeer(intptr_t fd, intptr_t* port) { |
| + return SocketBase::GetRemotePeer(fd, port); |
| +} |
| + |
| + |
| +intptr_t SynchronousSocket::Read(intptr_t fd, |
| + void* buffer, |
| + intptr_t num_bytes) { |
| + return SocketBase::Read(fd, buffer, num_bytes); |
| +} |
| + |
| + |
| +intptr_t SynchronousSocket::Write(intptr_t fd, |
| + const void* buffer, |
| + intptr_t num_bytes) { |
| + return SocketBase::Write(fd, buffer, num_bytes); |
| +} |
| + |
| + |
| void SynchronousSocket::ShutdownRead(intptr_t fd) { |
| VOID_NO_RETRY_EXPECTED(shutdown(fd, SHUT_RD)); |
| } |
| @@ -69,6 +98,11 @@ void SynchronousSocket::ShutdownWrite(intptr_t fd) { |
| VOID_NO_RETRY_EXPECTED(shutdown(fd, SHUT_WR)); |
| } |
| + |
| +void SynchronousSocket::Close(intptr_t fd) { |
| + return SocketBase::Close(fd); |
| +} |
| + |
| } // namespace bin |
| } // namespace dart |