XvcServer

The class description is shown below:

class XvcServer

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.

Public Functions

XvcServer(uint16_t port, JtagDriver *drv, unsigned maxMsgSize = 32768)

Constructs an XVC TCP server listener.

Parameters:
  • port – Local TCP port to bind and listen on.

  • drv – Driver used by accepted connections.

  • maxMsgSize – Maximum protocol message/vector size in bytes.

virtual void run(bool &threadEn, rogue::LoggingPtr log)

Runs accept loop while thread enable flag is true.

Parameters:
  • threadEn – Run-control flag checked by loop.

  • log – Logger used for connection-level diagnostics.

virtual ~XvcServer()

Closes the listening socket and destroys server instance.