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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
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_UDP_DATAGRAM_SERVER_SOCKET_H_ 5 #ifndef NET_UDP_DATAGRAM_SERVER_SOCKET_H_
6 #define NET_UDP_DATAGRAM_SERVER_SOCKET_H_ 6 #define NET_UDP_DATAGRAM_SERVER_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/udp/datagram_socket.h" 10 #include "net/udp/datagram_socket.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 class IPEndPoint; 14 class IPEndPoint;
15 class IOBuffer; 15 class IOBuffer;
16 16
17 // A UDP Socket. 17 // A UDP Socket.
18 class NET_API DatagramServerSocket : public DatagramSocket { 18 class NET_EXPORT DatagramServerSocket : public DatagramSocket {
19 public: 19 public:
20 virtual ~DatagramServerSocket() {} 20 virtual ~DatagramServerSocket() {}
21 21
22 // Initialize this socket as a server socket listening at |address|. 22 // Initialize this socket as a server socket listening at |address|.
23 // Returns a network error code. 23 // Returns a network error code.
24 virtual int Listen(const IPEndPoint& address) = 0; 24 virtual int Listen(const IPEndPoint& address) = 0;
25 25
26 // Read from a socket and receive sender address information. 26 // Read from a socket and receive sender address information.
27 // |buf| is the buffer to read data into. 27 // |buf| is the buffer to read data into.
28 // |buf_len| is the maximum amount of data to read. 28 // |buf_len| is the maximum amount of data to read.
(...skipping 23 matching lines...) Expand all
52 // alive until the callback is called. 52 // alive until the callback is called.
53 virtual int SendTo(IOBuffer* buf, 53 virtual int SendTo(IOBuffer* buf,
54 int buf_len, 54 int buf_len,
55 const IPEndPoint& address, 55 const IPEndPoint& address,
56 CompletionCallback* callback) = 0; 56 CompletionCallback* callback) = 0;
57 }; 57 };
58 58
59 } // namespace net 59 } // namespace net
60 60
61 #endif // NET_UDP_DATAGRAM_SERVER_SOCKET_H_ 61 #endif // NET_UDP_DATAGRAM_SERVER_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698