summaryrefslogtreecommitdiffstats
path: root/net/udp
diff options
context:
space:
mode:
authorpenghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-25 17:54:53 +0000
committerpenghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-25 17:54:53 +0000
commit398dca8b08d277a02bf94320ee6ecfb507b264ec (patch)
tree5597cc76c87aeb7be89b7b57278a769bbff93aca /net/udp
parent589907faa1f48738d58e1b9bad2c908ea20a58e3 (diff)
downloadchromium_src-398dca8b08d277a02bf94320ee6ecfb507b264ec.zip
chromium_src-398dca8b08d277a02bf94320ee6ecfb507b264ec.tar.gz
chromium_src-398dca8b08d277a02bf94320ee6ecfb507b264ec.tar.bz2
Add bind(), recvFrom(), sendTo() for UDP socket.
BUG=None TEST=None Review URL: http://codereview.chromium.org/10134008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/udp')
-rw-r--r--net/udp/udp_socket_libevent.h5
-rw-r--r--net/udp/udp_socket_win.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/net/udp/udp_socket_libevent.h b/net/udp/udp_socket_libevent.h
index 4317740..b6fe51f 100644
--- a/net/udp/udp_socket_libevent.h
+++ b/net/udp/udp_socket_libevent.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -12,6 +12,7 @@
#include "base/threading/non_thread_safe.h"
#include "net/base/address_list_net_log_param.h"
#include "net/base/completion_callback.h"
+#include "net/base/net_export.h"
#include "net/base/rand_callback.h"
#include "net/base/io_buffer.h"
#include "net/base/ip_endpoint.h"
@@ -20,7 +21,7 @@
namespace net {
-class UDPSocketLibevent : public base::NonThreadSafe {
+class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe {
public:
UDPSocketLibevent(DatagramSocket::BindType bind_type,
const RandIntCallback& rand_int_cb,
diff --git a/net/udp/udp_socket_win.h b/net/udp/udp_socket_win.h
index d49f64d..e55b1f0 100644
--- a/net/udp/udp_socket_win.h
+++ b/net/udp/udp_socket_win.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -13,6 +13,7 @@
#include "base/threading/non_thread_safe.h"
#include "base/win/object_watcher.h"
#include "net/base/completion_callback.h"
+#include "net/base/net_export.h"
#include "net/base/rand_callback.h"
#include "net/base/ip_endpoint.h"
#include "net/base/io_buffer.h"
@@ -21,7 +22,7 @@
namespace net {
-class UDPSocketWin : public base::NonThreadSafe {
+class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) {
public:
UDPSocketWin(DatagramSocket::BindType bind_type,
const RandIntCallback& rand_int_cb,