]> git.proxmox.com Git - ceph.git/blob - ceph/src/crimson/net/Dispatcher.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / crimson / net / Dispatcher.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3 /*
4 * Ceph - scalable distributed file system
5 *
6 * Copyright (C) 2017 Red Hat, Inc
7 *
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.
12 *
13 */
14
15 #pragma once
16
17 #include <seastar/core/future.hh>
18 #include <seastar/core/sharded.hh>
19
20 #include "Fwd.h"
21
22 class AuthAuthorizer;
23
24 namespace crimson::net {
25
26 class Dispatcher {
27 public:
28 virtual ~Dispatcher() {}
29
30 virtual seastar::future<> ms_dispatch(Connection* conn, MessageRef m) {
31 return seastar::make_ready_future<>();
32 }
33
34 virtual seastar::future<> ms_handle_accept(ConnectionRef conn) {
35 return seastar::make_ready_future<>();
36 }
37
38 virtual seastar::future<> ms_handle_connect(ConnectionRef conn) {
39 return seastar::make_ready_future<>();
40 }
41
42 virtual seastar::future<> ms_handle_reset(ConnectionRef conn) {
43 return seastar::make_ready_future<>();
44 }
45
46 virtual seastar::future<> ms_handle_remote_reset(ConnectionRef conn) {
47 return seastar::make_ready_future<>();
48 }
49
50 virtual seastar::future<msgr_tag_t, bufferlist>
51 ms_verify_authorizer(entity_type_t,
52 auth_proto_t,
53 bufferlist&) {
54 return seastar::make_ready_future<msgr_tag_t, bufferlist>(0, bufferlist{});
55 }
56 };
57
58 } // namespace crimson::net