OpenSDN source code
metadata_client_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_client_session_h_
7 #define vnsw_agent_metadata_client_session_h_
8 
10 #include "http/http_session.h"
12 
14 public:
15  static const int kMetadataSessionInstance = 0;
16 
18  : HttpClientSession(client, socket) {}
20 
21  // return a session instance of 0 to ensure that only one
22  // session request is processed at any time
23  virtual int GetSessionInstance() const { return kMetadataSessionInstance; }
24 
25 private:
27 };
28 
29 #endif // vnsw_agent_metadata_client_session_h_
DISALLOW_COPY_AND_ASSIGN(MetadataClientSession)
static const int kMetadataSessionInstance
virtual int GetSessionInstance() const
MetadataClientSession(HttpClient *client, Socket *socket)
virtual Socket * socket() const
Definition: tcp_session.h:83
boost::asio::ip::tcp::socket Socket
Definition: tcp_session.h:57