8 #ifndef CSCORE_MJPEGSERVERIMPL_H_ 9 #define CSCORE_MJPEGSERVERIMPL_H_ 17 #include <llvm/SmallVector.h> 18 #include <llvm/StringRef.h> 19 #include <llvm/raw_ostream.h> 20 #include <support/SafeThread.h> 21 #include <support/raw_istream.h> 22 #include <support/raw_socket_ostream.h> 23 #include <tcpsockets/NetworkAcceptor.h> 24 #include <tcpsockets/NetworkStream.h> 35 std::unique_ptr<wpi::NetworkAcceptor> acceptor);
39 std::string GetListenAddress() {
return m_listenAddress; }
40 int GetPort() {
return m_port; }
43 void SetSourceImpl(std::shared_ptr<SourceImpl> source)
override;
45 void ServerThreadMain();
50 std::string m_listenAddress;
53 std::unique_ptr<wpi::NetworkAcceptor> m_acceptor;
54 std::atomic_bool m_active;
55 std::thread m_serverThread;
57 std::vector<wpi::SafeThreadOwner<ConnThread>> m_connThreads;
62 #endif // CSCORE_MJPEGSERVERIMPL_H_ Definition: MjpegServerImpl.cpp:75
Definition: SinkImpl.h:19
Definition: SinkImpl.h:23
Definition: MjpegServerImpl.h:32
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42