WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
NetworkAcceptor.hpp
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <memory>
8
10
11namespace wpi::net {
12
14 public:
15 NetworkAcceptor() = default;
16 virtual ~NetworkAcceptor() = default;
17
18 virtual int start() = 0;
19 virtual void shutdown() = 0;
20 virtual std::unique_ptr<NetworkStream> accept() = 0;
21
24};
25
26} // namespace wpi::net
virtual void shutdown()=0
NetworkAcceptor & operator=(const NetworkAcceptor &)=delete
NetworkAcceptor(const NetworkAcceptor &)=delete
virtual ~NetworkAcceptor()=default
virtual std::unique_ptr< NetworkStream > accept()=0
Definition raw_socket_ostream.hpp:9