WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
NetworkAcceptor.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2015. 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 TCPSOCKETS_NETWORKACCEPTOR_H_
9 #define TCPSOCKETS_NETWORKACCEPTOR_H_
10 
11 #include "NetworkStream.h"
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 
22  NetworkAcceptor(const NetworkAcceptor&) = delete;
23  NetworkAcceptor& operator=(const NetworkAcceptor&) = delete;
24 };
25 
26 #endif // TCPSOCKETS_NETWORKACCEPTOR_H_
Definition: NetworkAcceptor.h:13