Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: webrtc/base/asyncudpsocket.h

Issue 1535943004: Multi-networking with Android L. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/asyncsocket.h ('k') | webrtc/base/asyncudpsocket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 size_t cb, 42 size_t cb,
43 const SocketAddress& addr, 43 const SocketAddress& addr,
44 const rtc::PacketOptions& options) override; 44 const rtc::PacketOptions& options) override;
45 int Close() override; 45 int Close() override;
46 46
47 State GetState() const override; 47 State GetState() const override;
48 int GetOption(Socket::Option opt, int* value) override; 48 int GetOption(Socket::Option opt, int* value) override;
49 int SetOption(Socket::Option opt, int value) override; 49 int SetOption(Socket::Option opt, int value) override;
50 int GetError() const override; 50 int GetError() const override;
51 void SetError(int error) override; 51 void SetError(int error) override;
52 void BindToNetwork(const Network* network) override;
52 53
53 private: 54 private:
54 // Called when the underlying socket is ready to be read from. 55 // Called when the underlying socket is ready to be read from.
55 void OnReadEvent(AsyncSocket* socket); 56 void OnReadEvent(AsyncSocket* socket);
56 // Called when the underlying socket is ready to send. 57 // Called when the underlying socket is ready to send.
57 void OnWriteEvent(AsyncSocket* socket); 58 void OnWriteEvent(AsyncSocket* socket);
58 59
59 scoped_ptr<AsyncSocket> socket_; 60 scoped_ptr<AsyncSocket> socket_;
60 char* buf_; 61 char* buf_;
61 size_t size_; 62 size_t size_;
62 }; 63 };
63 64
64 } // namespace rtc 65 } // namespace rtc
65 66
66 #endif // WEBRTC_BASE_ASYNCUDPSOCKET_H_ 67 #endif // WEBRTC_BASE_ASYNCUDPSOCKET_H_
OLDNEW
« no previous file with comments | « webrtc/base/asyncsocket.h ('k') | webrtc/base/asyncudpsocket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698