OpenSDN source code
metadata_server_session.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_session_h_
7 #define vnsw_agent_metadata_server_session_h_
8 
9 #include "http/http_session.h"
11 
13 public:
14  static const int kMetadataSessionInstance = 0;
15 
19 
20  // return a session instance of 1 to ensure that only one
21  // session request is processed at any time
22  virtual int GetSessionInstance() const { return kMetadataSessionInstance; }
23 
24 private:
26 };
27 
28 #endif // vnsw_agent_metadata_server_session_h_
virtual int GetSessionInstance() const
MetadataServerSession(HttpServer *server, SslSocket *socket)
static const int kMetadataSessionInstance
DISALLOW_COPY_AND_ASSIGN(MetadataServerSession)
virtual Socket * socket() const
Definition: ssl_session.cc:99
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
Definition: ssl_session.h:21
TcpServer * server()
Definition: tcp_session.h:85