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

Side by Side Diff: net/socket/udp_server_socket.h

Issue 2253753002: Always use NonBlocking IO for UDP sockets on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 3 years, 8 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/socket/udp_client_socket.cc ('k') | net/socket/udp_server_socket.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 // 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 #ifndef NET_SOCKET_UDP_SERVER_SOCKET_H_ 5 #ifndef NET_SOCKET_UDP_SERVER_SOCKET_H_
6 #define NET_SOCKET_UDP_SERVER_SOCKET_H_ 6 #define NET_SOCKET_UDP_SERVER_SOCKET_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 int SendTo(IOBuffer* buf, 35 int SendTo(IOBuffer* buf,
36 int buf_len, 36 int buf_len,
37 const IPEndPoint& address, 37 const IPEndPoint& address,
38 const CompletionCallback& callback) override; 38 const CompletionCallback& callback) override;
39 int SetReceiveBufferSize(int32_t size) override; 39 int SetReceiveBufferSize(int32_t size) override;
40 int SetSendBufferSize(int32_t size) override; 40 int SetSendBufferSize(int32_t size) override;
41 int SetDoNotFragment() override; 41 int SetDoNotFragment() override;
42 void Close() override; 42 void Close() override;
43 int GetPeerAddress(IPEndPoint* address) const override; 43 int GetPeerAddress(IPEndPoint* address) const override;
44 int GetLocalAddress(IPEndPoint* address) const override; 44 int GetLocalAddress(IPEndPoint* address) const override;
45 void UseNonBlockingIO() override;
46 const NetLogWithSource& NetLog() const override; 45 const NetLogWithSource& NetLog() const override;
47 void AllowAddressReuse() override; 46 void AllowAddressReuse() override;
48 void AllowBroadcast() override; 47 void AllowBroadcast() override;
49 int JoinGroup(const IPAddress& group_address) const override; 48 int JoinGroup(const IPAddress& group_address) const override;
50 int LeaveGroup(const IPAddress& group_address) const override; 49 int LeaveGroup(const IPAddress& group_address) const override;
51 int SetMulticastInterface(uint32_t interface_index) override; 50 int SetMulticastInterface(uint32_t interface_index) override;
52 int SetMulticastTimeToLive(int time_to_live) override; 51 int SetMulticastTimeToLive(int time_to_live) override;
53 int SetMulticastLoopbackMode(bool loopback) override; 52 int SetMulticastLoopbackMode(bool loopback) override;
54 int SetDiffServCodePoint(DiffServCodePoint dscp) override; 53 int SetDiffServCodePoint(DiffServCodePoint dscp) override;
55 void DetachFromThread() override; 54 void DetachFromThread() override;
56 55
57 private: 56 private:
58 UDPSocket socket_; 57 UDPSocket socket_;
59 bool allow_address_reuse_; 58 bool allow_address_reuse_;
60 bool allow_broadcast_; 59 bool allow_broadcast_;
61 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); 60 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket);
62 }; 61 };
63 62
64 } // namespace net 63 } // namespace net
65 64
66 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ 65 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/udp_client_socket.cc ('k') | net/socket/udp_server_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698