OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
9
#include "
services/metadata_server.h
"
10
11
class
MetadataServerSession
:
public
HttpSession
{
12
public
:
13
static
const
int
kMetadataSessionInstance
= 0;
14
15
MetadataServerSession
(
HttpServer
*
server
,
SslSocket
*
socket
)
16
:
HttpSession
(server, socket) {}
17
virtual
~MetadataServerSession
() {}
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
:
24
DISALLOW_COPY_AND_ASSIGN
(
MetadataServerSession
);
25
};
26
27
#endif // vnsw_agent_metadata_server_session_h_
MetadataServerSession::~MetadataServerSession
virtual ~MetadataServerSession()
Definition:
metadata_server_session.h:17
http_session.h
MetadataServerSession::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(MetadataServerSession)
MetadataServerSession::GetSessionInstance
virtual int GetSessionInstance() const
Definition:
metadata_server_session.h:21
SslSession::SslSocket
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
Definition:
ssl_session.h:18
MetadataServerSession::kMetadataSessionInstance
static const int kMetadataSessionInstance
Definition:
metadata_server_session.h:13
MetadataServerSession::MetadataServerSession
MetadataServerSession(HttpServer *server, SslSocket *socket)
Definition:
metadata_server_session.h:15
metadata_server.h
HttpServer
Definition:
http_server.h:35
TcpSession::server
TcpServer * server()
Definition:
tcp_session.h:88
HttpSession
Definition:
http_session.cc:133
MetadataServerSession
Definition:
metadata_server_session.h:11
SslSession::socket
virtual Socket * socket() const
Definition:
ssl_session.cc:97
contrail
controller
src
vnsw
agent
services
metadata_server_session.h
Generated by
1.8.5