]>
git.proxmox.com Git - ceph.git/blob - 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
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 <seastar/core/future.hh>
18 #include <seastar/core/sharded.hh>
24 namespace crimson::net
{
28 virtual ~Dispatcher() {}
30 virtual seastar::future
<> ms_dispatch(Connection
* conn
, MessageRef m
) {
31 return seastar::make_ready_future
<>();
34 virtual seastar::future
<> ms_handle_accept(ConnectionRef conn
) {
35 return seastar::make_ready_future
<>();
38 virtual seastar::future
<> ms_handle_connect(ConnectionRef conn
) {
39 return seastar::make_ready_future
<>();
42 virtual seastar::future
<> ms_handle_reset(ConnectionRef conn
) {
43 return seastar::make_ready_future
<>();
46 virtual seastar::future
<> ms_handle_remote_reset(ConnectionRef conn
) {
47 return seastar::make_ready_future
<>();
50 virtual seastar::future
<msgr_tag_t
, bufferlist
>
51 ms_verify_authorizer(entity_type_t
,
54 return seastar::make_ready_future
<msgr_tag_t
, bufferlist
>(0, bufferlist
{});
58 } // namespace crimson::net