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