Dear Matt,
I tried tcp client/server tests you suggested, and obviously work.
Meanwhile I did some other tests on my code and discovered some things:
My RPC client code has a main body (thread) doing some stuff and another thread that makes use of the rpc calls.
The rpc client initialization code is placed an 'initialize' method of the second object/thread, which performs the rpc calls;
something like that:
Thread1:
do stuff
create second thread object (obj2)
create second thread (t2)
obj2->moveToThread(t2)
obj2->initialize() (this creates qtcpsocket and connects to the server).
t2->start()
Thread 2:
performs rpc calls, but actually does not send data on the socket.
Please note that I get this warning on the console:
QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
If I comment out the moveToThread the rpc starts working (but I obviously loose the second thread).
I don't understand the warning. Actually I'm doing all the configurations of the rpc client and invokes in the same thread.