mirror of
https://github.com/ceph/ceph
synced 2025-03-09 17:59:10 +00:00
32 lines
653 B
C
32 lines
653 B
C
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
|
||
|
// vim: ts=8 sw=2 smarttab
|
||
|
|
||
|
#ifndef CEPH_MGR_MGRSESSION_H
|
||
|
#define CEPH_MGR_MGRSESSION_H
|
||
|
|
||
|
#include "common/RefCountedObj.h"
|
||
|
#include "common/entity_name.h"
|
||
|
#include "msg/msg_types.h"
|
||
|
#include "mon/MonCap.h"
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Session state associated with the Connection.
|
||
|
*/
|
||
|
struct MgrSession : public RefCountedObject {
|
||
|
uint64_t global_id = 0;
|
||
|
EntityName entity_name;
|
||
|
entity_addr_t addr;
|
||
|
|
||
|
// mon caps are suitably generic for mgr
|
||
|
MonCap caps;
|
||
|
|
||
|
MgrSession() : RefCountedObject(0) {}
|
||
|
~MgrSession() override {}
|
||
|
};
|
||
|
|
||
|
typedef boost::intrusive_ptr<MgrSession> MgrSessionRef;
|
||
|
|
||
|
|
||
|
#endif
|