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
"
10
#include "
services/metadata_server.h
"
11
12
class
MetadataServerSession
:
public
HttpSession
{
13
public
:
14
static
const
int
kMetadataSessionInstance
= 0;
15
16
MetadataServerSession
(
HttpServer
*
server
,
SslSocket
*
socket
)
17
:
HttpSession
(
server
,
socket
) {}
18
virtual
~MetadataServerSession
() {}
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
:
25
DISALLOW_COPY_AND_ASSIGN
(
MetadataServerSession
);
26
};
27
28
#endif
// vnsw_agent_metadata_server_session_h_
HttpServer
Definition:
http_server.h:36
MetadataServerSession
Definition:
metadata_server_session.h:12
MetadataServerSession::GetSessionInstance
virtual int GetSessionInstance() const
Definition:
metadata_server_session.h:22
MetadataServerSession::MetadataServerSession
MetadataServerSession(HttpServer *server, SslSocket *socket)
Definition:
metadata_server_session.h:16
MetadataServerSession::kMetadataSessionInstance
static const int kMetadataSessionInstance
Definition:
metadata_server_session.h:14
MetadataServerSession::~MetadataServerSession
virtual ~MetadataServerSession()
Definition:
metadata_server_session.h:18
MetadataServerSession::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(MetadataServerSession)
SslSession::socket
virtual Socket * socket() const
Definition:
ssl_session.cc:99
SslSession::SslSocket
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
Definition:
ssl_session.h:21
TcpSession::server
TcpServer * server()
Definition:
tcp_session.h:85
http_session.h
metadata_server.h
HttpSession
Definition:
http_session.cc:135
contrail
controller
src
vnsw
agent
services
metadata_server_session.h
Generated by
1.9.1