OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
metadata_server_session.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_session_h_
6 #define vnsw_agent_metadata_server_session_h_
7 
8 #include "http/http_session.h"
10 
12 public:
13  static const int kMetadataSessionInstance = 0;
14 
16  : HttpSession(server, socket) {}
18 
19  // return a session instance of 1 to ensure that only one
20  // session request is processed at any time
21  virtual int GetSessionInstance() const { return kMetadataSessionInstance; }
22 
23 private:
25 };
26 
27 #endif // vnsw_agent_metadata_server_session_h_
DISALLOW_COPY_AND_ASSIGN(MetadataServerSession)
virtual int GetSessionInstance() const
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
Definition: ssl_session.h:18
static const int kMetadataSessionInstance
MetadataServerSession(HttpServer *server, SslSocket *socket)
TcpServer * server()
Definition: tcp_session.h:88
virtual Socket * socket() const
Definition: ssl_session.cc:97