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

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

Issue 861963002: UDP: Windows implementation using non-blocking IO (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use IsWatching() 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.cc ('k') | net/udp/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 "net/base/completion_callback.h" 8 #include "net/base/completion_callback.h"
9 #include "net/base/net_util.h" 9 #include "net/base/net_util.h"
10 #include "net/udp/datagram_server_socket.h" 10 #include "net/udp/datagram_server_socket.h"
(...skipping 29 matching lines...) Expand all
40 void AllowAddressReuse() override; 40 void AllowAddressReuse() override;
41 void AllowBroadcast() override; 41 void AllowBroadcast() override;
42 int JoinGroup(const IPAddressNumber& group_address) const override; 42 int JoinGroup(const IPAddressNumber& group_address) const override;
43 int LeaveGroup(const IPAddressNumber& group_address) const override; 43 int LeaveGroup(const IPAddressNumber& group_address) const override;
44 int SetMulticastInterface(uint32 interface_index) override; 44 int SetMulticastInterface(uint32 interface_index) override;
45 int SetMulticastTimeToLive(int time_to_live) override; 45 int SetMulticastTimeToLive(int time_to_live) override;
46 int SetMulticastLoopbackMode(bool loopback) override; 46 int SetMulticastLoopbackMode(bool loopback) override;
47 int SetDiffServCodePoint(DiffServCodePoint dscp) override; 47 int SetDiffServCodePoint(DiffServCodePoint dscp) override;
48 void DetachFromThread() override; 48 void DetachFromThread() override;
49 49
50 #if defined(OS_WIN)
51 // Switch to use non-blocking IO. Must be called right after construction and
52 // before other calls.
53 void UseNonBlockingIO();
54 #endif
55
50 private: 56 private:
51 UDPSocket socket_; 57 UDPSocket socket_;
52 bool allow_address_reuse_; 58 bool allow_address_reuse_;
53 bool allow_broadcast_; 59 bool allow_broadcast_;
54 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); 60 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket);
55 }; 61 };
56 62
57 } // namespace net 63 } // namespace net
58 64
59 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ 65 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_
OLDNEW
« no previous file with comments | « net/udp/udp_client_socket.cc ('k') | net/udp/udp_server_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698