]>
git.proxmox.com Git - ceph.git/blob - ceph/src/crimson/net/Fwd.h
3eb57ef9781307d83ca4dd7efdded71f24116362
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2017 Red Hat, Inc
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
17 #include <boost/container/small_vector.hpp>
18 #include <seastar/core/future.hh>
19 #include <seastar/core/future-util.hh>
20 #include <seastar/core/shared_ptr.hh>
21 #include <seastar/core/sharded.hh>
23 #include "msg/Connection.h"
24 #include "msg/MessageRef.h"
25 #include "msg/msg_types.h"
27 #include "crimson/common/errorator.h"
28 #include "crimson/common/local_shared_foreign_ptr.h"
30 class AuthConnectionMeta
;
32 namespace crimson::net
{
34 using msgr_tag_t
= uint8_t;
35 using stop_t
= seastar::stop_iteration
;
38 using ConnectionLRef
= seastar::shared_ptr
<Connection
>;
39 using ConnectionFRef
= seastar::foreign_ptr
<ConnectionLRef
>;
40 using ConnectionRef
= ::crimson::local_shared_foreign_ptr
<ConnectionLRef
>;
42 class SocketConnection
;
45 class ChainedDispatchers
;
46 constexpr std::size_t NUM_DISPATCHERS
= 4u;
47 using dispatchers_t
= boost::container::small_vector
<Dispatcher
*, NUM_DISPATCHERS
>;
50 using MessengerRef
= seastar::shared_ptr
<Messenger
>;
52 } // namespace crimson::net