OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 int RecvFrom(void* pv, | 59 int RecvFrom(void* pv, |
60 size_t cb, | 60 size_t cb, |
61 SocketAddress* paddr, | 61 SocketAddress* paddr, |
62 int64_t* timestamp) override; | 62 int64_t* timestamp) override; |
63 int Listen(int backlog) override; | 63 int Listen(int backlog) override; |
64 AsyncSocket* Accept(SocketAddress* paddr) override; | 64 AsyncSocket* Accept(SocketAddress* paddr) override; |
65 int Close() override; | 65 int Close() override; |
66 int GetError() const override; | 66 int GetError() const override; |
67 void SetError(int error) override; | 67 void SetError(int error) override; |
68 ConnState GetState() const override; | 68 ConnState GetState() const override; |
69 int EstimateMTU(uint16_t* mtu) override; | |
70 int GetOption(Option opt, int* value) override; | 69 int GetOption(Option opt, int* value) override; |
71 int SetOption(Option opt, int value) override; | 70 int SetOption(Option opt, int value) override; |
72 | 71 |
73 protected: | 72 protected: |
74 virtual void OnConnectEvent(AsyncSocket* socket); | 73 virtual void OnConnectEvent(AsyncSocket* socket); |
75 virtual void OnReadEvent(AsyncSocket* socket); | 74 virtual void OnReadEvent(AsyncSocket* socket); |
76 virtual void OnWriteEvent(AsyncSocket* socket); | 75 virtual void OnWriteEvent(AsyncSocket* socket); |
77 virtual void OnCloseEvent(AsyncSocket* socket, int err); | 76 virtual void OnCloseEvent(AsyncSocket* socket, int err); |
78 | 77 |
79 AsyncSocket* socket_; | 78 AsyncSocket* socket_; |
80 }; | 79 }; |
81 | 80 |
82 } // namespace rtc | 81 } // namespace rtc |
83 | 82 |
84 #endif // WEBRTC_BASE_ASYNCSOCKET_H_ | 83 #endif // WEBRTC_BASE_ASYNCSOCKET_H_ |
OLD | NEW |