WPILibC++  unspecified
NetworkListener.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 CSCORE_NETWORKLISTENER_H_
9 #define CSCORE_NETWORKLISTENER_H_
10 
11 #include <support/SafeThread.h>
12 
13 namespace cs {
14 
16  public:
17  static NetworkListener& GetInstance() {
18  static NetworkListener instance;
19  return instance;
20  }
21  ~NetworkListener();
22 
23  void Start();
24  void Stop();
25 
26  private:
27  NetworkListener() = default;
28 
29  class Thread;
31 };
32 
33 } // namespace cs
34 
35 #endif // CSCORE_NETWORKLISTENER_H_
Definition: SinkImpl.h:19
Definition: NetworkListener.cpp:28
Definition: NetworkListener.h:15