#ifndef NET_SOCKET_SERVER_SOCKET_H_
#define NET_SOCKET_SERVER_SOCKET_H_
#include "base/memory/scoped_ptr.h"
#include "net/base/completion_callback.h"
#include "net/base/net_export.h"
namespace net {
class IPEndPoint;
class StreamSocket;
class NET_EXPORT ServerSocket {
public:
ServerSocket() { }
virtual ~ServerSocket() { }
virtual int Listen(const net::IPEndPoint& address, int backlog) = 0;
virtual int GetLocalAddress(IPEndPoint* address) const = 0;
virtual int Accept(scoped_ptr<StreamSocket>* socket,
const CompletionCallback& callback) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(ServerSocket);
};
}
#endif