OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
metadata_server.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_agent_metadata_server_h_
6 #define vnsw_agent_metadata_server_h_
7 
8 #include "http/http_server.h"
10 
11 class MetadataServer : public HttpServer {
12 public:
14  virtual ~MetadataServer() {}
15 
16  virtual SslSession *AllocSession(SslSocket *socket) {
17  std::unique_ptr<MetadataServerSession>
18  session(new MetadataServerSession(this, socket));
19  boost::system::error_code ec = session->SetSocketOptions();
20  if (ec) {
21  return NULL;
22  }
23  return session.release();
24  }
25 
26 private:
28 };
29 
30 #endif // vnsw_agent_metadata_server_h_
virtual ~MetadataServer()
DISALLOW_COPY_AND_ASSIGN(MetadataServer)
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
Definition: ssl_server.h:16
MetadataServer(EventManager *evm)
virtual SslSession * AllocSession(SslSocket *socket)
static EventManager evm