rogue
Loading...
Searching...
No Matches
XvcServer.h
Go to the documentation of this file.
1
18#ifndef __ROGUE_PROTOCOLS_XILINX_XVC_SERVER_H__
19#define __ROGUE_PROTOCOLS_XILINX_XVC_SERVER_H__
20#include "rogue/Directives.h"
21
22#include "rogue/GeneralError.h"
23#include "rogue/Logging.h"
25
26namespace rogue {
27namespace protocols {
28namespace xilinx {
37class XvcServer {
38 private:
39 int sd_;
40 JtagDriver* drv_;
41 unsigned maxMsgSize_;
42
43 public:
51 XvcServer(uint16_t port, JtagDriver* drv, unsigned maxMsgSize = 32768);
52
59 virtual void run(bool& threadEn, rogue::LoggingPtr log);
60
62 virtual ~XvcServer();
63};
64} // namespace xilinx
65} // namespace protocols
66} // namespace rogue
67
68#endif
Base transport driver for the AxisToJtag firmware protocol.
Definition JtagDriver.h:68
TCP listener for XVC client connections.
Definition XvcServer.h:37
virtual void run(bool &threadEn, rogue::LoggingPtr log)
Runs accept loop while thread enable flag is true.
Definition XvcServer.cpp:58
virtual ~XvcServer()
Closes the listening socket and destroys server instance.
Definition XvcServer.cpp:54
std::shared_ptr< rogue::Logging > LoggingPtr
Shared pointer alias for Logging.
Definition Logging.h:159