|
rogue
|
TCP listener for XVC client connections. More...
#include <XvcServer.h>
Public Member Functions | |
| XvcServer (uint16_t port, JtagDriver *drv, unsigned maxMsgSize=32768) | |
| Constructs an XVC TCP server listener. | |
| virtual void | run (bool &threadEn, rogue::LoggingPtr log) |
| Runs accept loop while thread enable flag is true. | |
| virtual | ~XvcServer () |
| Closes the listening socket and destroys server instance. | |
TCP listener for XVC client connections.
XvcServer owns the listening socket and accepts one sub-connection at a time. Each accepted client is serviced via XvcConnection, which performs XVC protocol parsing and delegates JTAG operations to JtagDriver.
Definition at line 37 of file XvcServer.h.
| rogue::protocols::xilinx::XvcServer::XvcServer | ( | uint16_t | port, |
| JtagDriver * | drv, | ||
| unsigned | maxMsgSize = 32768 |
||
| ) |
Constructs an XVC TCP server listener.
| port | Local TCP port to bind and listen on. |
| drv | Driver used by accepted connections. |
| maxMsgSize | Maximum protocol message/vector size in bytes. |
Description:
This file is part of the rogue software platform. It is subject to the license terms in the LICENSE.txt file found in the top-level directory of this distribution and at: https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part of the rogue software platform, including this file, may be copied, modified, propagated, or distributed except according to the terms
Definition at line 34 of file XvcServer.cpp.
|
virtual |
Closes the listening socket and destroys server instance.
Definition at line 54 of file XvcServer.cpp.
|
virtual |
Runs accept loop while thread enable flag is true.
| threadEn | Run-control flag checked by loop. |
| log | Logger used for connection-level diagnostics. |
Definition at line 58 of file XvcServer.cpp.