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

Side by Side Diff: net/udp/udp_server_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_server_socket.h ('k') | net/udp/udp_socket_libevent.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_server_socket.h" 5 #include "net/udp/udp_server_socket.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/base/rand_callback.h" 8 #include "net/base/rand_callback.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 int UDPServerSocket::SetReceiveBufferSize(int32 size) { 63 int UDPServerSocket::SetReceiveBufferSize(int32 size) {
64 return socket_.SetReceiveBufferSize(size); 64 return socket_.SetReceiveBufferSize(size);
65 } 65 }
66 66
67 int UDPServerSocket::SetSendBufferSize(int32 size) { 67 int UDPServerSocket::SetSendBufferSize(int32 size) {
68 return socket_.SetSendBufferSize(size); 68 return socket_.SetSendBufferSize(size);
69 } 69 }
70 70
71 void UDPServerSocket::Close() { 71 int UDPServerSocket::Close() {
72 socket_.Close(); 72 return socket_.Close();
73 } 73 }
74 74
75 int UDPServerSocket::GetPeerAddress(IPEndPoint* address) const { 75 int UDPServerSocket::GetPeerAddress(IPEndPoint* address) const {
76 return socket_.GetPeerAddress(address); 76 return socket_.GetPeerAddress(address);
77 } 77 }
78 78
79 int UDPServerSocket::GetLocalAddress(IPEndPoint* address) const { 79 int UDPServerSocket::GetLocalAddress(IPEndPoint* address) const {
80 return socket_.GetLocalAddress(address); 80 return socket_.GetLocalAddress(address);
81 } 81 }
82 82
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 socket_.DetachFromThread(); 120 socket_.DetachFromThread();
121 } 121 }
122 122
123 #if defined(OS_WIN) 123 #if defined(OS_WIN)
124 void UDPServerSocket::UseNonBlockingIO() { 124 void UDPServerSocket::UseNonBlockingIO() {
125 socket_.UseNonBlockingIO(); 125 socket_.UseNonBlockingIO();
126 } 126 }
127 #endif 127 #endif
128 128
129 } // namespace net 129 } // namespace net
OLDNEW
« no previous file with comments | « net/udp/udp_server_socket.h ('k') | net/udp/udp_socket_libevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698