Hi. Thank you for the update. In my case the TCP server works fine. However, running two programs at the same is not ideally, so I moved to QT for the user interface. QT and LibTorch work if the following is added to your header file:
#undef slots
#include <torch/csrc/jit/serialization/import.h> // required to import the model
#include <torch/script.h>                                 // One-stop header.
#define slots Q_SLOTS
Maybe this could help you.
If wrapper dll works, please let me know how to implement it.