mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-10 21:22:20 +03:00
28 lines
710 B
C++
28 lines
710 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <fizz/server/FizzServerContext.h>
|
|
#include <folly/io/async/AsyncUDPSocket.h>
|
|
#include <quic/server/QuicServerTransport.h>
|
|
|
|
namespace quic {
|
|
|
|
class QuicServerTransportFactory {
|
|
public:
|
|
virtual ~QuicServerTransportFactory() {}
|
|
|
|
virtual QuicServerTransport::Ptr make(
|
|
folly::EventBase* evb,
|
|
std::unique_ptr<folly::AsyncUDPSocket> socket,
|
|
const folly::SocketAddress& addr,
|
|
std::shared_ptr<const fizz::server::FizzServerContext> ctx) noexcept = 0;
|
|
};
|
|
} // namespace quic
|