diff options
Diffstat (limited to 'net/udp')
-rw-r--r-- | net/udp/datagram_client_socket.h | 2 | ||||
-rw-r--r-- | net/udp/datagram_server_socket.h | 2 | ||||
-rw-r--r-- | net/udp/udp_client_socket.h | 26 | ||||
-rw-r--r-- | net/udp/udp_server_socket.h | 50 | ||||
-rw-r--r-- | net/udp/udp_socket_libevent.h | 8 |
5 files changed, 45 insertions, 43 deletions
diff --git a/net/udp/datagram_client_socket.h b/net/udp/datagram_client_socket.h index 31fc43f..c2c2cba 100644 --- a/net/udp/datagram_client_socket.h +++ b/net/udp/datagram_client_socket.h @@ -15,7 +15,7 @@ class IPEndPoint; class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket, public Socket { public: - virtual ~DatagramClientSocket() {} + ~DatagramClientSocket() override {} // Initialize this socket as a client socket to server at |address|. // Returns a network error code. diff --git a/net/udp/datagram_server_socket.h b/net/udp/datagram_server_socket.h index 4c38cc8..d3796c3 100644 --- a/net/udp/datagram_server_socket.h +++ b/net/udp/datagram_server_socket.h @@ -17,7 +17,7 @@ class IOBuffer; // A UDP Socket. class NET_EXPORT DatagramServerSocket : public DatagramSocket { public: - virtual ~DatagramServerSocket() {} + ~DatagramServerSocket() override {} // Initialize this socket as a server socket listening at |address|. // Returns a network error code. diff --git a/net/udp/udp_client_socket.h b/net/udp/udp_client_socket.h index d689640..427db7e 100644 --- a/net/udp/udp_client_socket.h +++ b/net/udp/udp_client_socket.h @@ -21,20 +21,22 @@ class NET_EXPORT_PRIVATE UDPClientSocket : public DatagramClientSocket { const RandIntCallback& rand_int_cb, net::NetLog* net_log, const net::NetLog::Source& source); - virtual ~UDPClientSocket(); + ~UDPClientSocket() override; // DatagramClientSocket implementation. - virtual int Connect(const IPEndPoint& address) override; - virtual int Read(IOBuffer* buf, int buf_len, - const CompletionCallback& callback) override; - virtual int Write(IOBuffer* buf, int buf_len, - const CompletionCallback& callback) override; - virtual void Close() override; - virtual int GetPeerAddress(IPEndPoint* address) const override; - virtual int GetLocalAddress(IPEndPoint* address) const override; - virtual int SetReceiveBufferSize(int32 size) override; - virtual int SetSendBufferSize(int32 size) override; - virtual const BoundNetLog& NetLog() const override; + int Connect(const IPEndPoint& address) override; + int Read(IOBuffer* buf, + int buf_len, + const CompletionCallback& callback) override; + int Write(IOBuffer* buf, + int buf_len, + const CompletionCallback& callback) override; + void Close() override; + int GetPeerAddress(IPEndPoint* address) const override; + int GetLocalAddress(IPEndPoint* address) const override; + int SetReceiveBufferSize(int32 size) override; + int SetSendBufferSize(int32 size) override; + const BoundNetLog& NetLog() const override; private: UDPSocket socket_; diff --git a/net/udp/udp_server_socket.h b/net/udp/udp_server_socket.h index 9801ff8..77ca86d 100644 --- a/net/udp/udp_server_socket.h +++ b/net/udp/udp_server_socket.h @@ -19,33 +19,33 @@ class BoundNetLog; class NET_EXPORT UDPServerSocket : public DatagramServerSocket { public: UDPServerSocket(net::NetLog* net_log, const net::NetLog::Source& source); - virtual ~UDPServerSocket(); + ~UDPServerSocket() override; // Implement DatagramServerSocket: - virtual int Listen(const IPEndPoint& address) override; - virtual int RecvFrom(IOBuffer* buf, - int buf_len, - IPEndPoint* address, - const CompletionCallback& callback) override; - virtual int SendTo(IOBuffer* buf, - int buf_len, - const IPEndPoint& address, - const CompletionCallback& callback) override; - virtual int SetReceiveBufferSize(int32 size) override; - virtual int SetSendBufferSize(int32 size) override; - virtual void Close() override; - virtual int GetPeerAddress(IPEndPoint* address) const override; - virtual int GetLocalAddress(IPEndPoint* address) const override; - virtual const BoundNetLog& NetLog() const override; - virtual void AllowAddressReuse() override; - virtual void AllowBroadcast() override; - virtual int JoinGroup(const IPAddressNumber& group_address) const override; - virtual int LeaveGroup(const IPAddressNumber& group_address) const override; - virtual int SetMulticastInterface(uint32 interface_index) override; - virtual int SetMulticastTimeToLive(int time_to_live) override; - virtual int SetMulticastLoopbackMode(bool loopback) override; - virtual int SetDiffServCodePoint(DiffServCodePoint dscp) override; - virtual void DetachFromThread() override; + int Listen(const IPEndPoint& address) override; + int RecvFrom(IOBuffer* buf, + int buf_len, + IPEndPoint* address, + const CompletionCallback& callback) override; + int SendTo(IOBuffer* buf, + int buf_len, + const IPEndPoint& address, + const CompletionCallback& callback) override; + int SetReceiveBufferSize(int32 size) override; + int SetSendBufferSize(int32 size) override; + void Close() override; + int GetPeerAddress(IPEndPoint* address) const override; + int GetLocalAddress(IPEndPoint* address) const override; + const BoundNetLog& NetLog() const override; + void AllowAddressReuse() override; + void AllowBroadcast() override; + int JoinGroup(const IPAddressNumber& group_address) const override; + int LeaveGroup(const IPAddressNumber& group_address) const override; + int SetMulticastInterface(uint32 interface_index) override; + int SetMulticastTimeToLive(int time_to_live) override; + int SetMulticastLoopbackMode(bool loopback) override; + int SetDiffServCodePoint(DiffServCodePoint dscp) override; + void DetachFromThread() override; private: UDPSocket socket_; diff --git a/net/udp/udp_socket_libevent.h b/net/udp/udp_socket_libevent.h index 292a42f..2ac564d 100644 --- a/net/udp/udp_socket_libevent.h +++ b/net/udp/udp_socket_libevent.h @@ -179,9 +179,9 @@ class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe { // MessageLoopForIO::Watcher methods - virtual void OnFileCanReadWithoutBlocking(int /* fd */) override; + void OnFileCanReadWithoutBlocking(int /* fd */) override; - virtual void OnFileCanWriteWithoutBlocking(int /* fd */) override {} + void OnFileCanWriteWithoutBlocking(int /* fd */) override {} private: UDPSocketLibevent* const socket_; @@ -195,9 +195,9 @@ class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe { // MessageLoopForIO::Watcher methods - virtual void OnFileCanReadWithoutBlocking(int /* fd */) override {} + void OnFileCanReadWithoutBlocking(int /* fd */) override {} - virtual void OnFileCanWriteWithoutBlocking(int /* fd */) override; + void OnFileCanWriteWithoutBlocking(int /* fd */) override; private: UDPSocketLibevent* const socket_; |