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

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

Issue 15995023: Add multicast support to DatagramServerSocket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
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/udp/datagram_server_socket.h" 10 #include "net/udp/datagram_server_socket.h"
10 #include "net/udp/udp_socket.h" 11 #include "net/udp/udp_socket.h"
11 12
12 namespace net { 13 namespace net {
13 14
14 class IPEndPoint; 15 class IPEndPoint;
15 class BoundNetLog; 16 class BoundNetLog;
16 17
17 // A client socket that uses UDP as the transport layer. 18 // A client socket that uses UDP as the transport layer.
18 class NET_EXPORT UDPServerSocket : public DatagramServerSocket { 19 class NET_EXPORT UDPServerSocket : public DatagramServerSocket {
(...skipping 13 matching lines...) Expand all
32 const IPEndPoint& address, 33 const IPEndPoint& address,
33 const CompletionCallback& callback) OVERRIDE; 34 const CompletionCallback& callback) OVERRIDE;
34 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 35 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
35 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 36 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
36 virtual void Close() OVERRIDE; 37 virtual void Close() OVERRIDE;
37 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 38 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
38 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 39 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
39 virtual const BoundNetLog& NetLog() const OVERRIDE; 40 virtual const BoundNetLog& NetLog() const OVERRIDE;
40 virtual void AllowAddressReuse() OVERRIDE; 41 virtual void AllowAddressReuse() OVERRIDE;
41 virtual void AllowBroadcast() OVERRIDE; 42 virtual void AllowBroadcast() OVERRIDE;
43 virtual int JoinGroup(const IPAddressNumber& group_address) const OVERRIDE;
44 virtual int LeaveGroup(const IPAddressNumber& group_address) const OVERRIDE;
45 virtual int SetMulticastTimeToLive(int time_to_live) OVERRIDE;
46 virtual int SetMulticastLoopbackMode(bool loopback) OVERRIDE;
42 47
43 private: 48 private:
44 UDPSocket socket_; 49 UDPSocket socket_;
45 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket); 50 DISALLOW_COPY_AND_ASSIGN(UDPServerSocket);
46 }; 51 };
47 52
48 } // namespace net 53 } // namespace net
49 54
50 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_ 55 #endif // NET_SOCKET_UDP_SERVER_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698