WPILibC++ 2023.4.3-108-ge5452e3
NetworkAcceptor.h
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#ifndef WPINET_NETWORKACCEPTOR_H_
6#define WPINET_NETWORKACCEPTOR_H_
7
8#include <memory>
9
11
12namespace wpi {
13
15 public:
16 NetworkAcceptor() = default;
17 virtual ~NetworkAcceptor() = default;
18
19 virtual int start() = 0;
20 virtual void shutdown() = 0;
21 virtual std::unique_ptr<NetworkStream> accept() = 0;
22
25};
26
27} // namespace wpi
28
29#endif // WPINET_NETWORKACCEPTOR_H_
Definition: NetworkAcceptor.h:14
virtual ~NetworkAcceptor()=default
NetworkAcceptor()=default
NetworkAcceptor & operator=(const NetworkAcceptor &)=delete
virtual void shutdown()=0
virtual std::unique_ptr< NetworkStream > accept()=0
NetworkAcceptor(const NetworkAcceptor &)=delete
virtual int start()=0
Definition: AprilTagFieldLayout.h:18