summaryrefslogtreecommitdiffstats
path: root/net/udp
diff options
context:
space:
mode:
Diffstat (limited to 'net/udp')
-rw-r--r--net/udp/udp_client_socket.cc7
-rw-r--r--net/udp/udp_client_socket.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/net/udp/udp_client_socket.cc b/net/udp/udp_client_socket.cc
index 5cc498d..cdbf756 100644
--- a/net/udp/udp_client_socket.cc
+++ b/net/udp/udp_client_socket.cc
@@ -45,5 +45,12 @@ int UDPClientSocket::GetLocalAddress(AddressList* address) const {
return socket_.GetLocalAddress(address);
}
+bool UDPClientSocket::SetReceiveBufferSize(int32 size) {
+ return true;
+}
+
+bool UDPClientSocket::SetSendBufferSize(int32 size) {
+ return true;
+}
} // namespace net
diff --git a/net/udp/udp_client_socket.h b/net/udp/udp_client_socket.h
index 8ba07e5..602d09b 100644
--- a/net/udp/udp_client_socket.h
+++ b/net/udp/udp_client_socket.h
@@ -28,8 +28,8 @@ class UDPClientSocket : public DatagramClientSocket {
virtual void Close();
virtual int GetPeerAddress(AddressList* address) const;
virtual int GetLocalAddress(AddressList* address) const;
- virtual bool SetReceiveBufferSize(int32 size) { return true; }
- virtual bool SetSendBufferSize(int32 size) { return true; }
+ virtual bool SetReceiveBufferSize(int32 size);
+ virtual bool SetSendBufferSize(int32 size);
private:
UDPSocket socket_;