WPILibC++
2018.4.1-20180730003225-1150-g0a0d924
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
NetworkAcceptor.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
3
/* Open Source Software - may be modified and shared by FRC teams. The code */
4
/* must be accompanied by the FIRST BSD license file in the root directory of */
5
/* the project. */
6
/*----------------------------------------------------------------------------*/
7
8
#ifndef WPIUTIL_WPI_NETWORKACCEPTOR_H_
9
#define WPIUTIL_WPI_NETWORKACCEPTOR_H_
10
11
#include <memory>
12
13
#include "wpi/NetworkStream.h"
14
15
namespace
wpi
{
16
17
class
NetworkAcceptor
{
18
public
:
19
NetworkAcceptor
() =
default
;
20
virtual
~
NetworkAcceptor
() =
default
;
21
22
virtual
int
start() = 0;
23
virtual
void
shutdown() = 0;
24
virtual
std::unique_ptr<NetworkStream> accept() = 0;
25
26
NetworkAcceptor
(
const
NetworkAcceptor
&) =
delete
;
27
NetworkAcceptor
& operator=(
const
NetworkAcceptor
&) =
delete
;
28
};
29
30
}
// namespace wpi
31
32
#endif // WPIUTIL_WPI_NETWORKACCEPTOR_H_
wpi
WPILib C++ utilities (wpiutil) namespace.
Definition:
SmallString.h:21
wpi::NetworkAcceptor
Definition:
NetworkAcceptor.h:17
wpiutil
src
main
native
include
wpi
NetworkAcceptor.h
Generated on Mon Jul 30 2018 00:33:32 for WPILibC++ by
1.8.8