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

Side by Side Diff: net/udp/udp_client_socket.cc

Issue 914853002: Add CHECK() in UdpSocketLibevent to debug crbug.com/452121 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « net/udp/udp_client_socket.h ('k') | net/udp/udp_server_socket.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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/udp/udp_client_socket.h" 5 #include "net/udp/udp_client_socket.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/base/net_log.h" 8 #include "net/base/net_log.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 20 matching lines...) Expand all
31 const CompletionCallback& callback) { 31 const CompletionCallback& callback) {
32 return socket_.Read(buf, buf_len, callback); 32 return socket_.Read(buf, buf_len, callback);
33 } 33 }
34 34
35 int UDPClientSocket::Write(IOBuffer* buf, 35 int UDPClientSocket::Write(IOBuffer* buf,
36 int buf_len, 36 int buf_len,
37 const CompletionCallback& callback) { 37 const CompletionCallback& callback) {
38 return socket_.Write(buf, buf_len, callback); 38 return socket_.Write(buf, buf_len, callback);
39 } 39 }
40 40
41 void UDPClientSocket::Close() { 41 int UDPClientSocket::Close() {
42 socket_.Close(); 42 socket_.Close();
43 return OK;
43 } 44 }
44 45
45 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const { 46 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const {
46 return socket_.GetPeerAddress(address); 47 return socket_.GetPeerAddress(address);
47 } 48 }
48 49
49 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const { 50 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const {
50 return socket_.GetLocalAddress(address); 51 return socket_.GetLocalAddress(address);
51 } 52 }
52 53
53 int UDPClientSocket::SetReceiveBufferSize(int32 size) { 54 int UDPClientSocket::SetReceiveBufferSize(int32 size) {
54 return socket_.SetReceiveBufferSize(size); 55 return socket_.SetReceiveBufferSize(size);
55 } 56 }
56 57
57 int UDPClientSocket::SetSendBufferSize(int32 size) { 58 int UDPClientSocket::SetSendBufferSize(int32 size) {
58 return socket_.SetSendBufferSize(size); 59 return socket_.SetSendBufferSize(size);
59 } 60 }
60 61
61 const BoundNetLog& UDPClientSocket::NetLog() const { 62 const BoundNetLog& UDPClientSocket::NetLog() const {
62 return socket_.NetLog(); 63 return socket_.NetLog();
63 } 64 }
64 65
65 #if defined(OS_WIN) 66 #if defined(OS_WIN)
66 void UDPClientSocket::UseNonBlockingIO() { 67 void UDPClientSocket::UseNonBlockingIO() {
67 socket_.UseNonBlockingIO(); 68 socket_.UseNonBlockingIO();
68 } 69 }
69 #endif 70 #endif
70 71
71 } // namespace net 72 } // namespace net
OLDNEW
« no previous file with comments | « net/udp/udp_client_socket.h ('k') | net/udp/udp_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698