It might have been easier to just add a Server member to QGCCore class
Or directly use the QTcpServer inside QGCore and connecting to its slots.

Cheers,
_