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

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

Issue 2718663005: Replace NULL with nullptr or null in webrtc/base/. (Closed)
Patch Set: Fixing Windows and formatting issues. Created 3 years, 9 months 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/asyncinvoker-inl.h ('k') | webrtc/base/asyncsocket.h » ('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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 STATE_CLOSED, 71 STATE_CLOSED,
72 STATE_BINDING, 72 STATE_BINDING,
73 STATE_BOUND, 73 STATE_BOUND,
74 STATE_CONNECTING, 74 STATE_CONNECTING,
75 STATE_CONNECTED 75 STATE_CONNECTED
76 }; 76 };
77 77
78 AsyncPacketSocket(); 78 AsyncPacketSocket();
79 ~AsyncPacketSocket() override; 79 ~AsyncPacketSocket() override;
80 80
81 // Returns current local address. Address may be set to NULL if the 81 // Returns current local address. Address may be set to null if the
82 // socket is not bound yet (GetState() returns STATE_BINDING). 82 // socket is not bound yet (GetState() returns STATE_BINDING).
83 virtual SocketAddress GetLocalAddress() const = 0; 83 virtual SocketAddress GetLocalAddress() const = 0;
84 84
85 // Returns remote address. Returns zeroes if this is not a client TCP socket. 85 // Returns remote address. Returns zeroes if this is not a client TCP socket.
86 virtual SocketAddress GetRemoteAddress() const = 0; 86 virtual SocketAddress GetRemoteAddress() const = 0;
87 87
88 // Send a packet. 88 // Send a packet.
89 virtual int Send(const void *pv, size_t cb, const PacketOptions& options) = 0; 89 virtual int Send(const void *pv, size_t cb, const PacketOptions& options) = 0;
90 virtual int SendTo(const void *pv, size_t cb, const SocketAddress& addr, 90 virtual int SendTo(const void *pv, size_t cb, const SocketAddress& addr,
91 const PacketOptions& options) = 0; 91 const PacketOptions& options) = 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Used only for listening TCP sockets. 134 // Used only for listening TCP sockets.
135 sigslot::signal2<AsyncPacketSocket*, AsyncPacketSocket*> SignalNewConnection; 135 sigslot::signal2<AsyncPacketSocket*, AsyncPacketSocket*> SignalNewConnection;
136 136
137 private: 137 private:
138 RTC_DISALLOW_COPY_AND_ASSIGN(AsyncPacketSocket); 138 RTC_DISALLOW_COPY_AND_ASSIGN(AsyncPacketSocket);
139 }; 139 };
140 140
141 } // namespace rtc 141 } // namespace rtc
142 142
143 #endif // WEBRTC_BASE_ASYNCPACKETSOCKET_H_ 143 #endif // WEBRTC_BASE_ASYNCPACKETSOCKET_H_
OLDNEW
« no previous file with comments | « webrtc/base/asyncinvoker-inl.h ('k') | webrtc/base/asyncsocket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698