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

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

Issue 2235973002: Add a SetDoNotFragment() method to DatagramSocket, and call this for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 18 matching lines...) Expand all
29 int RecvFrom(IOBuffer* buf, 29 int RecvFrom(IOBuffer* buf,
30 int buf_len, 30 int buf_len,
31 IPEndPoint* address, 31 IPEndPoint* address,
32 const CompletionCallback& callback) override; 32 const CompletionCallback& callback) override;
33 int SendTo(IOBuffer* buf, 33 int SendTo(IOBuffer* buf,
34 int buf_len, 34 int buf_len,
35 const IPEndPoint& address, 35 const IPEndPoint& address,
36 const CompletionCallback& callback) override; 36 const CompletionCallback& callback) override;
37 int SetReceiveBufferSize(int32_t size) override; 37 int SetReceiveBufferSize(int32_t size) override;
38 int SetSendBufferSize(int32_t size) override; 38 int SetSendBufferSize(int32_t size) override;
39 int SetDoNotFragment() override;
39 void Close() override; 40 void Close() override;
40 int GetPeerAddress(IPEndPoint* address) const override; 41 int GetPeerAddress(IPEndPoint* address) const override;
41 int GetLocalAddress(IPEndPoint* address) const override; 42 int GetLocalAddress(IPEndPoint* address) const override;
42 void UseNonBlockingIO() override; 43 void UseNonBlockingIO() override;
43 const BoundNetLog& NetLog() const override; 44 const BoundNetLog& NetLog() const override;
44 void AllowAddressReuse() override; 45 void AllowAddressReuse() override;
45 void AllowBroadcast() override; 46 void AllowBroadcast() override;
46 int JoinGroup(const IPAddress& group_address) const override; 47 int JoinGroup(const IPAddress& group_address) const override;
47 int LeaveGroup(const IPAddress& group_address) const override; 48 int LeaveGroup(const IPAddress& group_address) const override;
48 int SetMulticastInterface(uint32_t interface_index) override; 49 int SetMulticastInterface(uint32_t interface_index) override;
49 int SetMulticastTimeToLive(int time_to_live) override; 50 int SetMulticastTimeToLive(int time_to_live) override;
50 int SetMulticastLoopbackMode(bool loopback) override; 51 int SetMulticastLoopbackMode(bool loopback) override;
51 int SetDiffServCodePoint(DiffServCodePoint dscp) override; 52 int SetDiffServCodePoint(DiffServCodePoint dscp) override;
52 void DetachFromThread() override; 53 void DetachFromThread() override;
53 54
54 private: 55 private:
55 UDPSocket socket_; 56 UDPSocket socket_;
56 bool allow_address_reuse_; 57 bool allow_address_reuse_;
57 bool allow_broadcast_; 58 bool allow_broadcast_;
58 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); 59 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket);
59 }; 60 };
60 61
61 } // namespace net 62 } // namespace net
62 63
63 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ 64 #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