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

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

Issue 861963002: UDP: Windows implementation using non-blocking IO (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try Created 5 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_UDP_CLIENT_SOCKET_H_
6 #define NET_SOCKET_UDP_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_UDP_CLIENT_SOCKET_H_
7 7
8 #include "net/base/net_log.h" 8 #include "net/base/net_log.h"
9 #include "net/base/rand_callback.h" 9 #include "net/base/rand_callback.h"
10 #include "net/udp/datagram_client_socket.h" 10 #include "net/udp/datagram_client_socket.h"
(...skipping 20 matching lines...) Expand all
31 int Write(IOBuffer* buf, 31 int Write(IOBuffer* buf,
32 int buf_len, 32 int buf_len,
33 const CompletionCallback& callback) override; 33 const CompletionCallback& callback) override;
34 void Close() override; 34 void Close() override;
35 int GetPeerAddress(IPEndPoint* address) const override; 35 int GetPeerAddress(IPEndPoint* address) const override;
36 int GetLocalAddress(IPEndPoint* address) const override; 36 int GetLocalAddress(IPEndPoint* address) const override;
37 int SetReceiveBufferSize(int32 size) override; 37 int SetReceiveBufferSize(int32 size) override;
38 int SetSendBufferSize(int32 size) override; 38 int SetSendBufferSize(int32 size) override;
39 const BoundNetLog& NetLog() const override; 39 const BoundNetLog& NetLog() const override;
40 40
41 #if defined(OS_WIN)
42 // Switch to use non-blocking IO. Must be called right after construction and
43 // before other calls.
44 void UseNonBlockingIO();
45 #endif
46
41 private: 47 private:
42 UDPSocket socket_; 48 UDPSocket socket_;
43 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket); 49 DISALLOW_COPY_AND_ASSIGN(UDPClientSocket);
44 }; 50 };
45 51
46 } // namespace net 52 } // namespace net
47 53
48 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_ 54 #endif // NET_SOCKET_UDP_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/udp/udp_client_socket.cc » ('j') | net/udp/udp_socket_perftest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698